Hi All,
I've been working on a customized freesbie2-RC1 cd, and found what i
think is a small bug in the customroot plugin. If you put a
master.passwd file in the customroot's etc directory, a new
master.passwd.db is built, but no pwd.db and spwd.db.
Furthermore, the path to master.passwd in the if statement is wrong,
since CUSTOMROOT is relative to the freesbie root, but at that point
in the script the pwd _is_ the customroot directory already..
I believe the patch below remedies these problems:
--- customroot.sh.dist Mon Dec 18 10:19:28 2006
+++ customroot.sh Mon Dec 18 10:57:43 2006
@@ -27,8 +27,9 @@
# Regenerate the password db
-if [ -f ${CUSTOMROOT}/etc/master.passwd ]; then
+if [ -f etc/master.passwd ]; then
chroot ${BASEDIR} cap_mkdb /etc/master.passwd
+ chroot ${BASEDIR} pwd_mkdb /etc/master.passwd
fi
# Fix permissions of ssh keys
Best,
Koen Martens
--
FreeSBIE mailing list (http://www.freesbie.org)