test
sean 7 years ago
parent 2ba9cb07da
commit 6617d2f84d

@ -339,13 +339,13 @@ echo "echo '${admin}:${rootpassword}' | chpasswd" >> /mnt/setup-chroot.sh
echo "exit 0" >> /mnt/setup-chroot.sh
errors=$(chmod +x /mnt/setup-chroot.sh 2>&1 1>/dev/null)
if ! ["$?" = "0" ]; then
errors=`chmod +x /mnt/setup-chroot.sh 2>&1 1>/dev/null`
if ! [ "$?" = "0" ]; then
echo "Failed to set execution permission on chroot script - $errors"
exit 45
fi
results=`chroot /mnt /setup-chroot.sh`
results=$(chroot /mnt /setup-chroot.sh)
if ! [ "$?" = "0" ]; then
echo "Error in chroot environment - $results"
exit $?

Loading…
Cancel
Save