projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't fail to ask for a password if there is no TTY
[grml-debootstrap.git]
/
chroot-script
diff --git
a/chroot-script
b/chroot-script
index
3f55747
..
86f1535
100755
(executable)
--- a/
chroot-script
+++ b/
chroot-script
@@
-55,9
+55,9
@@
stage() {
askpass() {
# read -s emulation for dash. result is in $resp.
set -o noglob
askpass() {
# read -s emulation for dash. result is in $resp.
set -o noglob
- stty -echo
+
[ -t 0 ] &&
stty -echo
read resp
read resp
- stty echo
+
[ -t 0 ] &&
stty echo
set +o noglob
}
# }}}
set +o noglob
}
# }}}
@@
-289,7
+289,7
@@
kernel() {
KVER=$(get_kernel_version)
if [ -n "$KVER" ] ; then
# note: install busybox to be able to debug initramfs
KVER=$(get_kernel_version)
if [ -n "$KVER" ] ; then
# note: install busybox to be able to debug initramfs
- KERNELPACKAGES="linux-image-$KVER linux-headers-$KVER busybox firmware-linux"
+ KERNELPACKAGES="linux-image-$KVER linux-headers-$KVER busybox firmware-linux
-free firmware-linux
"
DEBIAN_FRONTEND=$DEBIAN_FRONTEND $APTINSTALL $KERNELPACKAGES
fi
}
DEBIAN_FRONTEND=$DEBIAN_FRONTEND $APTINSTALL $KERNELPACKAGES
fi
}