On May 10, 2014, at 8:00 PM, William Harrington wrote:
What I can see is that AS_ROOT: in the Makefile needs to have the
targets above in that section and not in AS_LUSER.
WIth that I think I'm on the right track as far as that. I'm going
to look closer at master.sh if that is where the edits need to take
place.
Ah okay I think I saw what I was missing, not AS_ROOT but as SUDO now
in the Makefilfe I have this:
SUDO: 086-creatingdirs 087-createfiles 088-devices 089-
pwdgroup 090-fstab 091-settingenvironment 092-changingowner
But I need to have a conditional so that if we are using the new
method as stated in the original post to do it this way for the newer
book, but only use SUDO for devices and changingowner for the older
books using the older instructions.
Old books: SUDO for devices changingowner
New book: SUDO for creatingdirs createfiles devices pwdgroup fstab
settingenvironment changingowner
in CLFS master.sh I added this so far:
@@ -350,7 +351,12 @@
# the names of the targets in the Makefile
case "${this_script}" in
*changingowner) orphan_scripts="${orphan_scripts} $
{this_script}" ;;
+ *creatingdirs) orphan_scripts="${orphan_scripts} $
{this_script}" ;;
+ *createfiles) orphan_scripts="${orphan_scripts} $
{this_script}" ;;
*devices) orphan_scripts="${orphan_scripts} $
{this_script}" ;;
+ *fstab) orphan_scripts="${orphan_scripts} $
{this_script}" ;;
+ *pwdgroup) orphan_scripts="${orphan_scripts} ${this_script}" ;;
+ *settingenvironment) orphan_scripts="${orphan_scripts} $
{this_script}" ;;
*) boottools="$boottools $this_script" ;;
esac
#
I'm not sure what to use for the conditional for it to determine if to
use the new way or the old way. I suppose if we can detect for certain
difference that can be tested between the old books and the new book,
that may help. Keep in mind, that we can't use if the book is systemd
branch because the book is taking over master branch in CLFS for
release and systemd branch will be scrubbed.
Also one other change is needed for this boot section, too:
@@ -337,6 +337,7 @@
# A little housekeeping on the scripts
case $this_script in
*grub | *aboot | *colo | *silo | *arcload | *lilo |
*introduction ) continue ;;
+ *how-to-view*) continue ;;
*whatnext*) continue ;;
*fstab) [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/
fstab ;;
*kernel) # if there is no kernel config file do not build the
kernel
We added a page about how to view the book when in the minimal boot
system and we don't need to include that target in jhalfs build targets.
Sincerely,
William Harrington
--
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page