r3745 - in jhalfs/branches/ablfs: . LFS common/libs

pierre at higgs.linuxfromscratch.org pierre at higgs.linuxfromscratch.org
Fri Nov 1 07:25:30 PDT 2013


Author: pierre
Date: Fri Nov  1 07:25:30 2013
New Revision: 3745

Log:
merging trunk r3743 r3744

Modified:
   jhalfs/branches/ablfs/LFS/master.sh
   jhalfs/branches/ablfs/README
   jhalfs/branches/ablfs/common/libs/func_wrt_Makefile

Modified: jhalfs/branches/ablfs/LFS/master.sh
==============================================================================
--- jhalfs/branches/ablfs/LFS/master.sh	Fri Nov  1 07:22:17 2013	(r3744)
+++ jhalfs/branches/ablfs/LFS/master.sh	Fri Nov  1 07:25:30 2013	(r3745)
@@ -479,7 +479,7 @@
 
 mk_LUSER: mk_SETUP
 	@\$(call echo_SULUSER_request)
-	@( sudo \$(SU_LUSER) "source .bashrc && cd \$(MOUNT_PT)/\$(SCRIPT_ROOT) && make BREAKPOINT=\$(BREAKPOINT) LUSER" )
+	@( \$(SU_LUSER) "make -C \$(MOUNT_PT)/\$(SCRIPT_ROOT) BREAKPOINT=\$(BREAKPOINT) LUSER" )
 	@sudo make restore-luser-env
 	@touch \$@
 

Modified: jhalfs/branches/ablfs/README
==============================================================================
--- jhalfs/branches/ablfs/README	Fri Nov  1 07:22:17 2013	(r3744)
+++ jhalfs/branches/ablfs/README	Fri Nov  1 07:25:30 2013	(r3745)
@@ -67,9 +67,12 @@
      If you accepted the displayed settings jhalfs will proceed to create the
      Makefile, optionally download packages.
 
-     ::NEWS::
+     IMPORTANT::
          You must be logged as a normal user with sudo privileges to run
-         the Makefile.
+         the Makefile. Furthermore, you are supposed to have enough privilege
+         to become any user. If you are not bothered about security issues,
+         the entry for the user "jhalfs_user" in /etc/sudoers could be
+         jhalfs_user ALL=(ALL) NOPASSWD:ALL
 
      NOTE::
          If you run the jhalfs script directly the only function you can select

Modified: jhalfs/branches/ablfs/common/libs/func_wrt_Makefile
==============================================================================
--- jhalfs/branches/ablfs/common/libs/func_wrt_Makefile	Fri Nov  1 07:22:17 2013	(r3744)
+++ jhalfs/branches/ablfs/common/libs/func_wrt_Makefile	Fri Nov  1 07:25:30 2013	(r3745)
@@ -36,7 +36,7 @@
 crTESTLOGDIR   = /\$(SCRIPT_ROOT)/$TESTLOGDIRBASE
 crFILELOGDIR   = /\$(SCRIPT_ROOT)/$FILELOGDIRBASE
 
-SU_LUSER       = su - \$(LUSER) -c
+SU_LUSER       = sudo -u \$(LUSER) -i sh -c
 LUSER_HOME     = \$(LHOME)/\$(LUSER)
 PRT_DU         = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found \$(MOUNT_PT) \`\n"
 PRT_DU_CR      = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found / \`\n"



More information about the alfs-log mailing list