HLFS: Create a custom /etc/hlfs-release file.

This commit is contained in:
Manuel Canales Esparcia 2006-12-09 12:17:20 +00:00
parent 24f2c511ce
commit 63b87af9eb

View file

@ -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: