Split chroot operation into seperate script
This commit is contained in:
17
chroot.sh
Normal file
17
chroot.sh
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
baseDir="$(realpath "$(dirname "${0}")")"
|
||||||
|
|
||||||
|
|
||||||
|
printf \
|
||||||
|
"\nNow chrooting into /mnt...\n\n"
|
||||||
|
|
||||||
|
if [[ "${*}" == *--continue* ]]; then
|
||||||
|
chroot \
|
||||||
|
/mnt \
|
||||||
|
"$(printf "${baseDir}\n" | sed 's|.*\/|\/|')/install.sh"
|
||||||
|
else
|
||||||
|
chroot \
|
||||||
|
/mnt
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user