summaryrefslogtreecommitdiff
path: root/post-x86_64.sh
blob: 1939162d74b669011014a721a9993273e2effe60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mkdir -p cdroot-x86_64/boot

if ! type grub-mkimage>/dev/null; then
	printf "GRUB image cannot be created.  Using stale copy.\n"
	printf "If you don't have one, this will fail!\n"
else
	printf '\033[01;32m * \033[37mInstalling GRUB...\033[00;39m\n'
	grub-mkimage -c x86/early.cfg64 -v -p boot -o grubcore-stage1.img -O i386-pc biosdisk boot btrfs datetime disk ext2 gfxmenu help iso9660 jfs linux ls luks lvm memdisk nilfs2 normal part_gpt part_msdos png scsi search xfs reboot gfxterm gfxterm_background gfxterm_menu
	cat /usr/lib/grub/i386-pc/cdboot.img grubcore-stage1.img > cdroot-x86_64/boot/grubcore.img

	grub-mkimage -c x86/early.cfg64 -v -p boot -o cdroot-x86_64/boot/grubcore-efi.img -O x86_64-efi boot btrfs datetime disk ext2 gfxmenu help iso9660 jfs ls luks lvm memdisk nilfs2 normal part_gpt part_msdos png scsi search xfs linux reboot gfxterm gfxterm_background gfxterm_menu
fi

cp x86/grub.cfg64 cdroot-x86_64/boot/grub.cfg