[Debian-live-changes] r2236 - dists/trunk/live-helper/helpers

daniel at alioth.debian.org daniel at alioth.debian.org
Fri Jun 22 21:39:27 UTC 2007


Author: daniel
Date: 2007-06-22 21:39:26 +0000 (Fri, 22 Jun 2007)
New Revision: 2236

Modified:
   dists/trunk/live-helper/helpers/lh_chroot_hacks
Log:
Reverted r2235, insecure implementation; needs to be proper done later.

Modified: dists/trunk/live-helper/helpers/lh_chroot_hacks
===================================================================
--- dists/trunk/live-helper/helpers/lh_chroot_hacks	2007-06-22 20:17:33 UTC (rev 2235)
+++ dists/trunk/live-helper/helpers/lh_chroot_hacks	2007-06-22 21:39:26 UTC (rev 2236)
@@ -80,16 +80,6 @@
 		;;
 esac
 
-# Use a custom root password instead of none
-if [ -n "${LH_ROOT_PASSWORD_HASH}" ]
-then
-	LH_ROOT_PASSWORD_FILE="/chroot/usr/share/initramfs-tools/scripts/${INITFS}-bottom/10adduser
-	if [ -f "${LH_ROOT_PASSWORD_FILE}" ]
-	then
-		sed -i -e 's#\(set passwd/root-password-crypted \).*#\1'"${LH_ROOT_PASSWORD_HASH}#g" "${LH_ROOT_PASSWORD_FILE}"
-	fi
-fi
-
 # Update initramfs
 Chroot "update-initramfs -k all -t -u"
 
@@ -98,6 +88,5 @@
 	${LH_ROOT_COMMAND} chown -R --quiet `whoami`:`whoami` chroot
 fi
 
-
 # Creating stage file
 Create_stagefile .stage/chroot_hacks




More information about the Debian-live-changes mailing list