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
|
||||
fi
|
||||
|
||||
printf \
|
||||
"\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
|
||||
"${baseDir}/chroot.sh" --continue
|
||||
|
||||
zpool \
|
||||
export \
|
||||
|
||||
Reference in New Issue
Block a user