summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d0bc58a)
chroot-script runs in target, which might very well use dash, which
doesn't have "read -s". Patch based on mira's recommendations.
echo " Executing stage ${1}"
return 0
}
echo " Executing stage ${1}"
return 0
}
+
+askpass() {
+ # read -s emulation for dash. result is in $resp.
+ set -o noglob
+ stty -echo
+ read resp
+ stty echo
+ set +o noglob
+}
# }}}
# define chroot mirror {{{
# }}}
# define chroot mirror {{{
echo "Setting password for user root:"
while [ "$a" != "$b" ] ; do
echo -n "Enter new UNIX password for user root: "
echo "Setting password for user root:"
while [ "$a" != "$b" ] ; do
echo -n "Enter new UNIX password for user root: "
+ askpass
+ a="$resp"
+ unset resp
echo
echo -n "Retype new UNIX password for user root: "
echo
echo -n "Retype new UNIX password for user root: "
+ askpass
+ b="$resp"
+ unset resp
echo
if [ "$a" != "$b" ] ; then
echo "Sorry, passwords do not match. Retry."
echo
if [ "$a" != "$b" ] ; then
echo "Sorry, passwords do not match. Retry."
[ Tong Sun ]
* remove 'umount -a' in bailout(). [Closes: issue806].
[ Tong Sun ]
* remove 'umount -a' in bailout(). [Closes: issue806].
- -- Michael Prokop <mika@grml.org> Wed, 09 Jun 2010 11:44:05 +0200
+ [ Christian Hofstaedtler ]
+ * Remove "read -s" bashism from target chroot script. [Closes: issue912].
+
+ -- Christian Hofstaedtler <ch@grml.org> Mon, 18 Oct 2010 12:33:49 +0000
grml-debootstrap (0.38) unstable; urgency=low
grml-debootstrap (0.38) unstable; urgency=low