18 lines
262 B
Bash
18 lines
262 B
Bash
#!/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
|