El Viernes, 12 de Mayo de 2006 23:17, George Boudreau escribió: > Should a more robust testing for the existence of the lfs user and > group take place inside jhalfs. We validate the socks off of everything > else and the tool could reside in 'func_validate_configs.sh'.
Agree. > The existing tests in makefile could be retained. Maybe func_validate_configs.sh should set CREATE_USER 0/1 and modify the Makefile test to use that. > .. possible tests > lfs group exists /etc/group > lfs user exists /etc/passwd Yes. > (user) lfs gid = (group) lfs gid Is that needed? > (user) lfs homeDir = /home/lfs (What if it is something else?) Well, I can't figure out why someone would to create a homedir that don't match the user name. > If these 4 tests are true then the makefile tests will succeed. > If they fail should jhalfs do the creation automatically or force the > user to do the work? IMHO, to force the user to fix it. As a side note, Archiac made me the next suggestions: - At the end of the build we should to remove the user, group, and homedir, if they was created by the Makefile, and be sure that all files under $BUILDDIR are owned by root:root. Also, review if we can unmount the virtual filesystems at the end of the build. The host should finish in the same exact state it was in before the build, if posdsible. - Evaluate the posibility of using sudo to run jhalfs and the Makefile. That could to allow to format and mount the partiition and create the system as a normal user. -- Manuel Canales Esparcia Usuario de LFS nº2886: http://www.linuxfromscratch.org LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.com TLDP-ES: http://es.tldp.org -- http://linuxfromscratch.org/mailman/listinfo/alfs-discuss FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
