projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set +e in passwd code
[grml-debootstrap.git]
/
chroot-script
diff --git
a/chroot-script
b/chroot-script
index
0d75042
..
7fa771b
100644
(file)
--- a/
chroot-script
+++ b/
chroot-script
@@
-69,9
+69,10
@@
fi
echo "Activating shadow passwords."
shadowconfig on
echo "Setting password for user root:"
echo "Activating shadow passwords."
shadowconfig on
echo "Setting password for user root:"
-# TODO: typing the wrong password will exit chroot script
+set +e # do not exit if passwd returns error due to missmatching passwords
passwd
echo ""
passwd
echo ""
+set -e # restore default behaviour again
if ! [ -f /etc/hosts ] ; then
echo "Setting up /etc/hosts"
if ! [ -f /etc/hosts ] ; then
echo "Setting up /etc/hosts"