X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=grub.cfg.netinst-noreboot;fp=grub.cfg.netinst-noreboot;h=92f166700aaf33f67b3484477f949161e64d8dca;hb=78a1427fc167ccee73d448054a9c40c19d737ed3;hp=0000000000000000000000000000000000000000;hpb=19fcc3931853969ed5aa97897795557d324cae39;p=automated-distro-installer diff --git a/grub.cfg.netinst-noreboot b/grub.cfg.netinst-noreboot new file mode 100644 index 0000000..92f1667 --- /dev/null +++ b/grub.cfg.netinst-noreboot @@ -0,0 +1,78 @@ +## grub2 configuration +set default="Netinstall" +set timeout=2 +set resolution=1024x768 + +if loadfont /boot/grub/unicode.pf2 ; then + insmod png + set gfxmode=640x480 + insmod gfxterm + insmod vbe + terminal_output gfxterm +fi + +if background_image /boot/grub/fai.png ; then + set color_normal=black/black + set color_highlight=red/black + set menu_color_normal=black/black + set menu_color_highlight=black/yellow +else + set menu_color_normal=white/black + set menu_color_highlight=black/yellow +fi + +# make sure we can access partitions +insmod part_msdos +insmod part_gpt + +if [ ${iso_path} ] ; then + set loopback="findiso=${iso_path}" +fi + +menuentry "" --unrestricted { + set gfxpayload=$resolution +} +menuentry " +------------------------------------------------------+" --unrestricted { + set gfxpayload=$resolution +} + +menuentry " | Fully Automatic Installation |" --unrestricted { + set gfxpayload=$resolution + +} +menuentry " | _VERSIONSTRING_ |" --unrestricted { + set gfxpayload=$resolution + +} +menuentry " | (c) Thomas Lange lange@debian.org |" --unrestricted { + set gfxpayload=$resolution +} +menuentry " +------------------------------------------------------+" --unrestricted { + set gfxpayload=$resolution +} +} +menuentry "" --unrestricted { + set gfxpayload=$resolution +} + +menuentry "Netinstall" { + set gfxpayload=$resolution + linux /boot/vmlinuz console=ttyS0,19200n8 FAI_FLAGS="verbose,sshd,createvt" FAI_ACTION=install FAI_CONFIG_SRC=file:///var/lib/fai/config rd.live.image root=live:CDLABEL=FAI_CD rd.neednet ip=dhcp quiet + initrd /boot/initrd.img +} + + +menuentry "Boot OS of first partition on first disk" --unrestricted { + if [ -d (cd) ]; then + chainloader (hd0)+1 + fi + + if [ "$root" = "hd1" ]; then + chainloader (hd0)+1 + fi + + if [ "$root" = "hd0" ]; then + set root=(hd1) + chainloader (hd1)+1 + fi +}