tweaks
This commit is contained in:
@@ -339,13 +339,13 @@ echo "echo '${admin}:${rootpassword}' | chpasswd" >> /mnt/setup-chroot.sh
|
|||||||
|
|
||||||
echo "exit 0" >> /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
|
if ! [ "$?" = "0" ]; then
|
||||||
echo "Failed to set execution permission on chroot script - $errors"
|
echo "Failed to set execution permission on chroot script - $errors"
|
||||||
exit 45
|
exit 45
|
||||||
fi
|
fi
|
||||||
|
|
||||||
results=`chroot /mnt /setup-chroot.sh`
|
results=$(chroot /mnt /setup-chroot.sh)
|
||||||
if ! [ "$?" = "0" ]; then
|
if ! [ "$?" = "0" ]; then
|
||||||
echo "Error in chroot environment - $results"
|
echo "Error in chroot environment - $results"
|
||||||
exit $?
|
exit $?
|
||||||
|
|||||||
Reference in New Issue
Block a user