Split chroot operation into seperate script

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

17
chroot.sh Normal file
View 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