HLFS: Create a custom /etc/hlfs-release file.
This commit is contained in:
parent
24f2c511ce
commit
63b87af9eb
1 changed files with 10 additions and 7 deletions
|
@ -401,14 +401,15 @@ chapter7_Makefiles() { # Create a bootable system.. kernel, bootscripts..e
|
||||||
# should enter the chroot environment to create the root
|
# should enter the chroot environment to create the root
|
||||||
# password, edit several files and setup Grub.
|
# password, edit several files and setup Grub.
|
||||||
case $this_script in
|
case $this_script in
|
||||||
*usage) continue ;; # Contains example commands
|
*usage) continue ;; # Contains example commands
|
||||||
*grub) continue ;;
|
*grub) continue ;;
|
||||||
*console) continue ;; # Use the file generated by lfs-bootscripts
|
*console) continue ;; # Use the file generated by lfs-bootscripts
|
||||||
*fstab) [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/fstab
|
*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
|
*kernel) # If no .config file is supplied, the kernel build is skipped
|
||||||
[[ -z $CONFIG ]] && continue
|
[[ -z $CONFIG ]] && continue
|
||||||
cp $CONFIG $BUILDDIR/sources/kernel-config
|
cp $CONFIG $BUILDDIR/sources/kernel-config
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
all: ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL
|
||||||
@sudo make do-housekeeping
|
@sudo make do-housekeeping
|
||||||
|
@echo "$VERSION - jhalfs build" > hlfs-release && \\
|
||||||
|
sudo install -m444 hlfs-release \$(MOUNT_PT)/etc/hlfs-release
|
||||||
@\$(call echo_finished,$VERSION)
|
@\$(call echo_finished,$VERSION)
|
||||||
|
|
||||||
ck_UID:
|
ck_UID:
|
||||||
|
|
Reference in a new issue