From 9a27129139b2992be70c1a78ebac76b1873b2bf9 Mon Sep 17 00:00:00 2001 From: sean Date: Mon, 15 Jul 2019 19:44:00 -0700 Subject: [PATCH] tweaks --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 9f70779..60b0ed2 100644 --- a/setup.sh +++ b/setup.sh @@ -349,7 +349,7 @@ echo "echo \"Done.\"" >> /mnt/setup-chroot.sh # you need sed to do this right! echo 'echo ""' >> /mnt/setup-chroot.sh echo 'echo "Modifying grub for ZFS root..."' >> /mnt/setup-chroot.sh -echo "errors=\$(sed -ir 's/quiet splash//g' 2>&1 1>/dev/null && sed -ir 's/GRUB_CMDLINE_LINUX=\".*\"/GRUB_CMDLINE_LINUX=\"root=ZFS=rpool\/ROOT\/ubuntu\"/g' /etc/default/grub 2>&1 1>/dev/null && sed -ir 's/^ *\#? *GRUB_TERMINAL=console/GRUB_TERMINAL=console/g' /etc/default/grub 2>&1 1>/dev/null)" >> /mnt/setup-chroot.sh +echo "errors=\$(sed -ir 's/GRUB_CMDLINE_LINUX_DEFAULT\\\"quiet splash\\\"/GRUB_CMDLINE_LINUX_DEFAULT=\"\"/g' /etc/default/grub 2>&1 1>/dev/null && sed -ir 's/GRUB_CMDLINE_LINUX=\".*\"/GRUB_CMDLINE_LINUX=\"root=ZFS=rpool\/ROOT\/ubuntu\"/g' /etc/default/grub 2>&1 1>/dev/null && sed -ir 's/^ *#? *GRUB_TERMINAL=console/GRUB_TERMINAL=console/g' /etc/default/grub 2>&1 1>/dev/null)" >> /mnt/setup-chroot.sh echo "if ! [ \"\$?\" = \"0\" ]; then echo \"Failed to set grub ZFS root - \$errors\"; exit 104; fi" >> /mnt/setup-chroot.sh echo 'echo "Done."' >> /mnt/setup-chroot.sh