]> git.plutz.net Git - blast/commitdiff
initialize gfx in grub
authorPaul Hänsch <paul@plutz.net>
Tue, 15 Sep 2020 08:17:01 +0000 (10:17 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 15 Sep 2020 08:17:01 +0000 (10:17 +0200)
Makefile

index 60b6d479b700795e23fe5f4fa43a43cf8b459d51..1028267bfdc1ff40c7ddce417de781f3ef01fc02 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -380,10 +380,12 @@ _bootloader_pc: ${CFGROOT} _grub_efi32 _grub_efi64 _syslinux_bios #_syslinux_efi
 _bootloader_iso: ${CFGROOT} ${ISOROOT}
        mkdir -p "$${ISOROOT}/boot/grub/"
        cp -L "$${CFGROOT}/vmlinuz" "$${CFGROOT}/initrd.img" "$${ISOROOT}"
+       printf '%s\n' "insmod all_video" "set gfxmode=auto" "load_video" "insmod gfxterm" \
+               >"$${ISOROOT}/boot/grub/grub.cfg"
        printf '%s\n' "set timeout=10" "default=buster" \
                "menuentry 'Debian Buster' --id 'buster' {" \
                "linux '/vmlinuz' boot=live" "initrd '/initrd.img'" "}" \
-               >"$${ISOROOT}/boot/grub/grub.cfg"
+               >>"$${ISOROOT}/boot/grub/grub.cfg"
        -[ -f "$${ISOROOT}/install/initrd.gz" -a -f "$${ISOROOT}/install/linux" ] && \
        printf '%s\n' "menuentry 'Install Debian' --id 'install' {" \
                "linux '/install/linux'" "initrd '/install/initrd.gz'" "}" \