diff --git a/HLFS/master.sh b/HLFS/master.sh index 3d287d4..eb12231 100644 --- a/HLFS/master.sh +++ b/HLFS/master.sh @@ -401,14 +401,15 @@ chapter7_Makefiles() { # Create a bootable system.. kernel, bootscripts..e # should enter the chroot environment to create the root # password, edit several files and setup Grub. case $this_script in - *usage) continue ;; # Contains example commands - *grub) continue ;; - *console) continue ;; # Use the file generated by lfs-bootscripts - *fstab) [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/fstab + *usage) continue ;; # Contains example commands + *grub) continue ;; + *console) continue ;; # Use the file generated by lfs-bootscripts + *finished) continue ;; # Customized /etc/hlfs-release created in all target + *fstab) [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/fstab ;; - *kernel) # If no .config file is supplied, the kernel build is skipped - [[ -z $CONFIG ]] && continue - cp $CONFIG $BUILDDIR/sources/kernel-config + *kernel) # If no .config file is supplied, the kernel build is skipped + [[ -z $CONFIG ]] && continue + cp $CONFIG $BUILDDIR/sources/kernel-config ;; esac @@ -521,6 +522,8 @@ build_Makefile() { # Construct a Makefile from the book scripts all: ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL @sudo make do-housekeeping + @echo "$VERSION - jhalfs build" > hlfs-release && \\ + sudo install -m444 hlfs-release \$(MOUNT_PT)/etc/hlfs-release @\$(call echo_finished,$VERSION) ck_UID: