Changeset f5ecc28


Ignore:
Timestamp:
05/01/2020 02:24:32 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
38016d5
Parents:
06eddf4
Message:

Add code to save work at the end of chapter 5
(and finish the rebuild-makefile change)

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    r06eddf4 rf5ecc28  
    10781078
    10791079menu "Advanced Features"
    1080 depends on !BOOK_BLFS
     1080depends on !BOOK_BLFS && !REBUILD_MAKEFILE
    10811081
    10821082    config    REPORT
    10831083        bool "Create SBU and disk usage report"
    10841084        default y
     1085
     1086    config    SAVE_CH5
     1087        bool "Save Chapter 5 work"
     1088        depends on BOOK_LFS || BOOK_LFS_SYSD
     1089        default n
     1090        help
     1091            Save the state of jhalfs at the end of chapter 5:
     1092           
     1093            if you tick this item, the whole $LFS directory is
     1094            saved when chapter 5 is finished. It'll be in an xz
     1095            compressed tarball in the $LFS/jhalfs directory
    10851096
    10861097    #--- ICA
  • LFS/master.sh

    r06eddf4 rf5ecc28  
    101101# For vanilla lfs, the "changingowner" script should be run as root. So
    102102# it belongs to the "SUDO" target, with list in the "runasroot" variable.
    103 # For new lfs, changingowner and kernfs are in "runsaroot", then the following,
     103# For new lfs, changingowner and kernfs are in "runasroot", then the following,
    104104# starting at creatingdirs, are in the "CHROOT" target, in variable "chapter6".
    105105# Makefile_target records the variable, not really the target!
     
    442442  chapter4_Makefiles
    443443  chapter5_Makefiles
     444  # Add the save target, if needed
     445  [[ "$SAVE_CH5" = "y" ]] && wrt_save_target $Makefile_target
    444446  chapter6_Makefiles
    445447  # Add the iterations targets, if needed
  • common/libs/func_compare.sh

    r06eddf4 rf5ecc28  
    5454  local   PREV_IT=$2
    5555  local PRUNEPATH="/dev /home /${SCRIPT_ROOT} /lost+found /media /mnt /opt /proc \
    56 /sources /root /srv /sys /tmp /tools /usr/local /usr/src"
     56/sources /root /run /srv /sys /tmp /tools /usr/local /usr/src /var"
    5757
    5858  local    ROOT_DIR=/
  • common/libs/func_validate_configs.sh

    r06eddf4 rf5ecc28  
    5252
    5353  # Full list of books settings
    54   local -r   lfs_PARAM_LIST="$LFS_book   $GENERAL_common $LFS_build $LFS_system  $ADVANCED_chroot REALSBU $ADVANCED_common"
     54  local -r   lfs_PARAM_LIST="$LFS_book   $GENERAL_common $LFS_build $LFS_system  $ADVANCED_chroot REALSBU SAVE_CH5 $ADVANCED_common"
    5555  local -r  hlfs_PARAM_LIST="$HLFS_book  $GENERAL_common $HLFS_build  $ADVANCED_chroot $ADVANCED_common"
    5656  local -r  clfs_PARAM_LIST="$CLFS_book  $GENERAL_common $CLFS_build  $ADVANCED_chroot $ADVANCED_common"
  • jhalfs

    r06eddf4 rf5ecc28  
    179179LOCAL=${LOCAL:=n}
    180180REALSBU=${REALSBU:=n}
     181SAVE_CH5=${SAVE_CH5:=n}
    181182
    182183if [[ "${NO_PROGRESS_BAR}" = "y" ]] ; then
     
    355356fi
    356357#
     358# save module
     359if [[ "$SAVE_CH5" = "y" ]]; then
     360  load_file "${COMMON_DIR}/libs/func_save.sh" 'Loading save module'
     361fi
     362#
    357363# optimize module
    358364if [[ "$OPTIMIZE" != "0" ]]; then
Note: See TracChangeset for help on using the changeset viewer.