From 01148202ae93c4f9ad32231f2f0c76f43fda0965 Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Wed, 21 Mar 2018 10:55:03 -0500 Subject: [PATCH] chroot: grub set some defaults for efi Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- scripts/chroot.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 8fb50e49f..0bf8f9372 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -1004,6 +1004,17 @@ cat > "${DIR}/chroot_script.sh" <<-__EOF__ fi } + grub_tweaks { + echo "Log: (chroot): grub_tweaks" + + echo "rcn-ee: grub: set our standard boot args" >> /etc/default/grub + echo "GRUB_CMDLINE_LINUX_DEFAULT=\"console=ttyO0,115200n8 rootwait coherent_pool=1M net.ifnames=0 quiet\"" >> /etc/default/grub + echo "rcn-ee: grub: disable LINUX_UUID, broken" >> /etc/default/grub + echo "GRUB_DISABLE_LINUX_UUID=true" >> /etc/default/grub + echo "rcn-ee: grub: disable OS_PROBER, repeated OS entries" >> /etc/default/grub + echo "GRUB_DISABLE_OS_PROBER=true" >> /etc/default/grub + } + #cat /chroot_script.sh is_this_qemu stop_init @@ -1045,6 +1056,10 @@ cat > "${DIR}/chroot_script.sh" <<-__EOF__ systemd_tweaks fi + if [ -f /etc/default/grub ] ; then + grub_tweaks + fi + rm -f /chroot_script.sh || true __EOF__ -- GitLab