Split chroot operation into seperate script

This commit is contained in:
2025-12-24 16:11:14 -05:00
parent 2139685f77
commit ec2d8148e0

View File

@@ -188,20 +188,7 @@ if [[ "${ID}" == 'elementary' ]]; then
"${baseDir}/elementary.sh" --elementary "${baseDir}/elementary.sh" --elementary
fi fi
printf \ "${baseDir}/chroot.sh" --continue
"\nNow chrooting into /mnt...\n\n"
chroot \
/mnt \
"$(printf "${baseDir}\n" | sed 's|.*\/|\/|')/install.sh"
mount | grep -v zfs | tac | awk '/\/mnt/ {print $3}' | xargs -I {} umount -Rlf {}
if [[ "${ID}" == 'fedora' ]]; then
umount \
-nR \
/mnt
fi
zpool \ zpool \
export \ export \