|
|
|
@ -267,8 +267,14 @@ echo "errors=\$(echo 'root:${rootpassword}' | chpasswd 2>&1 1>/dev/null)" >> /mn
|
|
|
|
echo "if ! [ \"\$?\" = \"0\" ]; then echo \"Could not set root password - \$errors\"; exit 21; fi" >> /mnt/setup-chroot.sh
|
|
|
|
echo "if ! [ \"\$?\" = \"0\" ]; then echo \"Could not set root password - \$errors\"; exit 21; fi" >> /mnt/setup-chroot.sh
|
|
|
|
echo 'echo "Done."'>> /mnt/setup-chroot.sh
|
|
|
|
echo 'echo "Done."'>> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
|
|
echo "systemctl enable zfs-import-bpool.service" >> /mnt/setup-chroot.sh
|
|
|
|
echo 'echo ""' >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
echo 'echo "Enabling boot pool import service..."'>> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
echo "errors=\$(systemctl enable zfs-import-bpool.service 2>&1 1>/dev/null)" >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
echo 'if ! [ "$?" = "0" ]; then '>> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
echo ' echo "Failed to enable boot pool import service - $errors"' >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
echo " exit 102">> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
echo "fi">> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
echo 'echo "Done."'>> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
|
|
#cp /usr/sharesystemd/tmp.mount /etc/systemd/system/
|
|
|
|
#cp /usr/sharesystemd/tmp.mount /etc/systemd/system/
|
|
|
|
#systemctl enable tmp.mount
|
|
|
|
#systemctl enable tmp.mount
|
|
|
|
@ -276,7 +282,7 @@ echo "systemctl enable zfs-import-bpool.service" >> /mnt/setup-chroot.sh
|
|
|
|
#addgroup --system sambashare
|
|
|
|
#addgroup --system sambashare
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
echo "echo \"Success.\"" >> /mnt/setup-chroot.sh
|
|
|
|
echo "echo \"Success.\"" >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
|
|
|