|
|
|
|
@ -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)
|
|
|
|
|
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 $?
|
|
|
|
|
|