Split chroot operation into seperate script
This commit is contained in:
15
pre-inst.sh
15
pre-inst.sh
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user