r3267 - jhalfs/trunk/HLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat Dec 9 04:17:21 PST 2006


Author: manuel
Date: 2006-12-09 05:17:20 -0700 (Sat, 09 Dec 2006)
New Revision: 3267

Modified:
   jhalfs/trunk/HLFS/master.sh
Log:
HLFS: Create a custom /etc/hlfs-release file.

Modified: jhalfs/trunk/HLFS/master.sh
===================================================================
--- jhalfs/trunk/HLFS/master.sh	2006-12-08 12:21:02 UTC (rev 3266)
+++ jhalfs/trunk/HLFS/master.sh	2006-12-09 12:17:20 UTC (rev 3267)
@@ -401,14 +401,15 @@
     # 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 @@
 
 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:




More information about the alfs-log mailing list