-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible/pxe-server: Add GRUB configuration file
By dafault, the GRUB config defines several entries, such as expert installation and automated installation. It won't start an automated installation by default, and even if we choose it manually, it won't fetch the preseed file. Create a new GRUB config file that sets the automated installation option as the default one, make it start after 5 seconds of inactivity, and tell GRUB how to fetch the preseed file. Signed-off-by: Dimitris Poulopoulos <[email protected]>
- Loading branch information
1 parent
e1980b1
commit 7f43c17
Showing
2 changed files
with
210 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
if [ x$feature_default_font_path = xy ] ; then | ||
font=unicode | ||
else | ||
font=$prefix/font.pf2 | ||
fi | ||
|
||
if loadfont $font ; then | ||
set gfxmode=800x600 | ||
set gfxpayload=keep | ||
insmod efi_gop | ||
insmod efi_uga | ||
insmod video_bochs | ||
insmod video_cirrus | ||
insmod gfxterm | ||
insmod png | ||
terminal_output gfxterm | ||
fi | ||
|
||
if background_image /isolinux/splash.png; then | ||
set color_normal=light-gray/black | ||
set color_highlight=white/black | ||
elif background_image /splash.png; then | ||
set color_normal=light-gray/black | ||
set color_highlight=white/black | ||
else | ||
set menu_color_normal=cyan/blue | ||
set menu_color_highlight=white/blue | ||
fi | ||
|
||
set default="1>2" # Sets the Automated install as the default entry | ||
set timeout=5 # Sets the timeout to 5 seconds | ||
|
||
insmod play | ||
play 960 440 1 0 4 440 1 | ||
menuentry 'Install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux vga=788 --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
submenu --hotkey=a 'Advanced options ...' { | ||
set gfxpayload=keep | ||
menuentry '... Expert install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux priority=low vga=788 --- | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry '... Rescue mode' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux vga=788 rescue/enable=true --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry '... Automated install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux auto=true priority=critical preseed/url=tftp://{{ ipv4 }}/preseed.cfg vga=788 --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry --hotkey=x '... Expert install with speech synthesis' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux priority=low vga=788 speakup.synth=soft --- | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry --hotkey=r '... Rescue mode with speech synthesis' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux vga=788 rescue/enable=true speakup.synth=soft --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry --hotkey=a '... Automated install with speech synthesis' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux auto=true priority=critical vga=788 speakup.synth=soft --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
submenu '... Desktop environment menu ...' { | ||
set gfxpayload=keep | ||
submenu '... GNOME desktop boot menu ...' { | ||
set gfxpayload=keep | ||
menuentry '... Install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=gnome vga=788 --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
submenu '... GNOME advanced options ...' { | ||
set gfxpayload=keep | ||
menuentry '... Expert install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=gnome priority=low vga=788 --- | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry '... Automated install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=gnome auto=true priority=critical vga=788 --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry --hotkey=x '... Expert install with speech synthesis' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=gnome priority=low vga=788 speakup.synth=soft --- | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry --hotkey=a '... Automated install with speech synthesis' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=gnome auto=true priority=critical vga=788 speakup.synth=soft --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
} | ||
} | ||
submenu '... KDE Plasma desktop boot menu ...' { | ||
set gfxpayload=keep | ||
menuentry '... Install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=kde vga=788 --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
submenu '... KDE Plasma advanced options ...' { | ||
set gfxpayload=keep | ||
menuentry '... Expert install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=kde priority=low vga=788 --- | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry '... Automated install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=kde auto=true priority=critical vga=788 --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry --hotkey=x '... Expert install with speech synthesis' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=kde priority=low vga=788 speakup.synth=soft --- | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry --hotkey=a '... Automated install with speech synthesis' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=kde auto=true priority=critical vga=788 speakup.synth=soft --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
} | ||
} | ||
submenu '... LXDE desktop boot menu ...' { | ||
set gfxpayload=keep | ||
menuentry '... Install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=lxde vga=788 --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
submenu '... LXDE advanced options ...' { | ||
set gfxpayload=keep | ||
menuentry '... Expert install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=lxde priority=low vga=788 --- | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry '... Automated install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=lxde auto=true priority=critical vga=788 --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry --hotkey=x '... Expert install with speech synthesis' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=lxde priority=low vga=788 speakup.synth=soft --- | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry --hotkey=a '... Automated install with speech synthesis' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux desktop=lxde auto=true priority=critical vga=788 speakup.synth=soft --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
} | ||
} | ||
} | ||
} | ||
submenu --hotkey=d 'Accessible dark contrast installer menu ...' { | ||
set menu_color_normal=white/black | ||
set menu_color_highlight=yellow/black | ||
set color_normal=white/black | ||
set color_highlight=yellow/black | ||
background_image | ||
set gfxpayload=keep | ||
menuentry '... Install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux vga=788 theme=dark --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
submenu --hotkey=a '... Advanced options ...' { | ||
set menu_color_normal=white/black | ||
set menu_color_highlight=yellow/black | ||
set color_normal=white/black | ||
set color_highlight=yellow/black | ||
background_image | ||
set gfxpayload=keep | ||
menuentry '... Expert install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux priority=low vga=788 theme=dark --- | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry '... Rescue mode' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux vga=788 rescue/enable=true theme=dark --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
menuentry '... Automated install' { | ||
set background_color=black | ||
linux /debian-installer/amd64/linux auto=true priority=critical vga=788 theme=dark --- quiet | ||
initrd /debian-installer/amd64/initrd.gz | ||
} | ||
} | ||
} |