# HG changeset patch # User Pascal Bellard # Date 1331220194 -3600 # Node ID 044813ac073230f434dcdc88a28dbdc4a26efd69 # Parent dfcc18154c9ee974990e698eabdf3310d9de4953 base: use host chpasswd diff -r dfcc18154c9e -r 044813ac0732 base-tiny/receipt --- a/base-tiny/receipt Sat Jan 21 12:51:08 2012 +0100 +++ b/base-tiny/receipt Thu Mar 08 16:23:14 2012 +0100 @@ -28,11 +28,14 @@ busybox /etc/inetd.conf slitaz-base-files /etc/fstab slitaz-base-files /etc/group +slitaz-base-files /etc/passwd +slitaz-base-files /etc/shadow slitaz-boot-scripts /etc/inittab slitaz-boot-scripts /etc/network.conf slitaz-boot-scripts /etc/init.d/local.sh slitaz-boot-scripts /etc/rcS.conf EOT + sed -i 's/:x:/:!:/' fs/etc/passwd sed -i 's/UDEV=.*/UDEV="no"/;s/hwconf.sh l/l/' fs/etc/rcS.conf } @@ -121,9 +124,14 @@ -e "s/^DHCP=.*/DHCP=\"$DHCP\"/" \ -e "s/^IP=.*/IP=\"$IP\"/" $1/etc/network.conf if [ -n "$PASSWORD" ]; then - chroot $1/ "echo 'root:$PASSWORD' | chpasswd" + mkdir $1/lib + cp -a /lib/lib[cm][.-]* /lib/ld* $1/lib + cp -a /bin/busybox $1/lib/chpasswd + echo "root:$PASSWORD" | chroot $1/ /lib/chpasswd -m + rm -rf $1/lib else sed -i 's/^root:[^:]*:/root::/' $1/etc/passwd + mkdir $1/root 2> /dev/null cat > $1/root/.profile <