projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run shadowconfig
[grml-debootstrap.git]
/
chroot-script
diff --git
a/chroot-script
b/chroot-script
index
ee169b0
..
0ced334
100644
(file)
--- a/
chroot-script
+++ b/
chroot-script
@@
-17,12
+17,6
@@
if [ -n "MIRROR_LIST" ] ; then
echo $MIRROR_LIST > /etc/apt/sources.list
fi
echo $MIRROR_LIST > /etc/apt/sources.list
fi
-if [ -n "$RECONFIGURE" ] ; then
- for package in $RECONFIGURE ; do
- dpkg --list $package && dpkg-reconfigure $package || echo "Warning: $package does not exist, can not reconfigure it."
- done
-fi
-
# install additional packages
if [ "$PACKAGES" = 'yes' ] ; then
if ! [ -r /etc/debootstrap/packages ] ; then
# install additional packages
if [ "$PACKAGES" = 'yes' ] ; then
if ! [ -r /etc/debootstrap/packages ] ; then
@@
-34,8
+28,16
@@
if [ "$PACKAGES" = 'yes' ] ; then
fi
fi
fi
fi
+if [ -n "$RECONFIGURE" ] ; then
+ for package in $RECONFIGURE ; do
+ dpkg --list $package && dpkg-reconfigure $package || echo "Warning: $package does not exist, can not reconfigure it."
+ done
+fi
+
# set password of user root
# set password of user root
-# shadowconfig
+echo "Activating shadow passwords."
+shadowconfig on
+echo "Setting password for user root:"
passwd
if ! [ -f /etc/hosts ] ; then
passwd
if ! [ -f /etc/hosts ] ; then