|
|
|
@ -285,6 +285,7 @@ echo 'echo "Done."'>> /mnt/setup-chroot.sh
|
|
|
|
#addgroup --system lpadmin
|
|
|
|
#addgroup --system lpadmin
|
|
|
|
#addgroup --system sambashare
|
|
|
|
#addgroup --system sambashare
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo 'echo ""' >> /mnt/setup-chroot.sh
|
|
|
|
echo "echo \"Checking ZFS root...\"" >> /mnt/setup-chroot.sh
|
|
|
|
echo "echo \"Checking ZFS root...\"" >> /mnt/setup-chroot.sh
|
|
|
|
echo 'zfscheck=$(grub-probe /boot 2>&1 1>/dev/null)' >> /mnt/setup-chroot.sh
|
|
|
|
echo 'zfscheck=$(grub-probe /boot 2>&1 1>/dev/null)' >> /mnt/setup-chroot.sh
|
|
|
|
echo "if ! [ \"\$?\" = \"0\" ]; then echo \"grub-probe check failed - \$zfscheck\"; exit 2; fi" >> /mnt/setup-chroot.sh
|
|
|
|
echo "if ! [ \"\$?\" = \"0\" ]; then echo \"grub-probe check failed - \$zfscheck\"; exit 2; fi" >> /mnt/setup-chroot.sh
|
|
|
|
@ -302,7 +303,7 @@ echo "echo \"Done.\"" >> /mnt/setup-chroot.sh
|
|
|
|
# you need sed to do this right!
|
|
|
|
# you need sed to do this right!
|
|
|
|
echo 'echo ""' >> /mnt/setup-chroot.sh
|
|
|
|
echo 'echo ""' >> /mnt/setup-chroot.sh
|
|
|
|
echo 'echo "Modifying grub for ZFS root..."' >> /mnt/setup-chroot.sh
|
|
|
|
echo 'echo "Modifying grub for ZFS root..."' >> /mnt/setup-chroot.sh
|
|
|
|
echo "errors=\$(sed -ir 's/GRUB_CMDLINE_LINUX=\".*\"/GRUB_CMDLINE_LINUX=\"root=ZFS=rpool/ROOT/ubuntu\"/g' /etc/defaults/grub 2>&1 1>/dev/null)" >> /mnt/setup-chroot.sh
|
|
|
|
echo "errors=\$(sed -ir 's/GRUB_CMDLINE_LINUX=\".*\"/GRUB_CMDLINE_LINUX=\"root=ZFS=rpool\/ROOT\/ubuntu\"/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 "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
|
|
|
|
echo 'echo "Done."' >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
|
|
|