diff --git a/chroot.sh b/chroot.sh new file mode 100644 index 0000000..fa3957f --- /dev/null +++ b/chroot.sh @@ -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