Skip to content
Snippets Groups Projects
Commit ad932a62 authored by David Sauerwein's avatar David Sauerwein
Browse files

Place custom grub.cfg in /boot/cip/grub

parent e6fe0333
No related branches found
No related tags found
No related merge requests found
password_pbkdf2 root grub.pbkdf2.sha512.10000.B5C2AFAAD8835D1FBC84C09234AE9C2F161A62E5142160C17A0522E569C659F0A0B4A021BB280E36657D732FBD65B1999759394946F28FC5EBE8598AE07A00C5.C5CF2EE2B00EC399C713A8AC64690BCF6FD373A486DBC54220A53B8ADE32932C488BBEC2AD7C00A845358205E63BF3EE21D60007CA280DF43C21424163FFF7AB
set superusers="root"
insmod all_video
insmod part_gpt
insmod ext2
# Make everything pink to make the installer boot menu easily recognizable
set color_normal="light-magenta/black"
set color_highlight="black/light-magenta"
set menu_color_normal="black/light-magenta"
set menu_color_highlight="light-magenta/black"
set timeout_style=menu
set timeout=5
menuentry 'CIP Linux' --unrestricted {
echo 'Loading kernel ...'
# blacklist noveau to avoid debconf emails about conflicts when installing proprietary nvidia driver
linux /vmlinuz root=__PARTITION__ net.ifnames=0 biosdevname=0 modprobe.blacklist=nouveau
echo 'Loading initial ramdisk ...'
initrd /initrd.img
}
menuentry 'iPXE' --hotkey='i' {
echo 'Chainloading iPXE ...'
chainloader /boot/ipxe.efi
}
menuentry 'System setup' --unrestricted --hotkey='s' {
fwsetup
}
......@@ -173,9 +173,15 @@ printf "%s\n" "${HOSTNAME}" > ${TARGET}/etc/hostname
##########################################
## install grub
install -D -m 0644 /files/etc_default_grub "${TARGET}/etc/default/grub"
chroot ${TARGET} grub-install ${DISK}
chroot ${TARGET} update-grub
chroot ${TARGET} debconf-set-selections << EOF
grub-efi-amd64 grub2/update_nvram boolean false
EOF
mkdir -p "${TARGET}/boot/cip/grub"
sed -e "s,__PARTITION__,${PART_ROOT},g" /files/boot_cip_grub_grub.cfg > "${TARGET}/boot/cip/grub/grub.cfg"
chmod 600 "${TARGET}/boot/cip/grub/grub.cfg"
chroot ${TARGET} grub-install --bootloader-id=CIP-GRUB --target=x86_64-efi --boot-directory=/boot/cip --efi-directory=/boot/efi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment