summaryrefslogtreecommitdiff
path: root/post-pmmx.sh
diff options
context:
space:
mode:
Diffstat (limited to 'post-pmmx.sh')
-rwxr-xr-xpost-pmmx.sh24
1 files changed, 11 insertions, 13 deletions
diff --git a/post-pmmx.sh b/post-pmmx.sh
index ff04986..6daa760 100755
--- a/post-pmmx.sh
+++ b/post-pmmx.sh
@@ -1,16 +1,14 @@
-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