Unverified Commit 3ad57c6a authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

x86 -> GRUB

parent dd7dfb9c
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table
--grub2-boot-info --grub2-mbr /usr/lib/grub/i386-pc/boot_hybrid.img -eltorito-boot boot/grubcore.img -no-emul-boot -boot-load-size 4 -boot-info-table --eltorito-catalog boot/grub.cat -eltorito-alt-boot -e boot/grubcore-efi.img -no-emul-boot -isohybrid-gpt-basdat
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table
--grub2-boot-info --grub2-mbr /usr/lib/grub/i386-pc/boot_hybrid.img -eltorito-boot boot/grubcore.img -no-emul-boot -boot-load-size 4 -boot-info-table --eltorito-catalog boot/grub.cat -eltorito-alt-boot -e boot/grubcore-efi.img -no-emul-boot -isohybrid-gpt-basdat
dmidecode
dosfstools
efibootmgr
grub-efi
mactel-boot
strace
syslinux
......@@ -4,4 +4,3 @@ efibootmgr
grub-efi
mactel-boot
strace
syslinux
printf '\033[01;32m * \033[37mInstalling ISOLINUX...\033[00;39m\n'
mkdir -p cdroot-pmmx/boot
mkdir cdroot-$ARCH/isolinux
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.cfg -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-pmmx/boot/grubcore.img
cat >cdroot-$ARCH/isolinux/isolinux.cfg <<BOOTCFG
prompt 1
default adelie
label adelie
kernel /bzImage
append initrd=/initrd
BOOTCFG
cp /usr/share/syslinux/isolinux.bin cdroot-$ARCH/isolinux/isolinux.bin
cp /usr/share/syslinux/ldlinux.c32 cdroot-$ARCH/isolinux/
grub-mkimage -c x86/early.cfg -v -p boot -o cdroot-pmmx/boot/grubcore-efi.img -O i386-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.cfg cdroot-pmmx/boot/grub.cfg
printf '\033[01;32m * \033[37mInstalling ISOLINUX...\033[00;39m\n'
mkdir -p cdroot-x86_64/boot
mkdir cdroot-$ARCH/isolinux
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
cat >cdroot-$ARCH/isolinux/isolinux.cfg <<BOOTCFG
prompt 1
default adelie
label adelie
kernel /bzImage
append initrd=/initrd
BOOTCFG
cp /usr/share/syslinux/isolinux.bin cdroot-$ARCH/isolinux/isolinux.bin
cp /usr/share/syslinux/ldlinux.c32 cdroot-$ARCH/isolinux/
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment