diff --git a/bootscripts/lfs/init.d/mountvirtfs b/bootscripts/lfs/init.d/mountvirtfs index 6f9df8d14..0330a1a97 100644 --- a/bootscripts/lfs/init.d/mountvirtfs +++ b/bootscripts/lfs/init.d/mountvirtfs @@ -34,7 +34,7 @@ case "${1}" in # Make sure /run/var is available before logging any messages mkdir -p /run mount -n /run || failed=1 - mkdir -p /run/{var,lock,shm} + mkdir -p /run/var /run/lock /run/shm chmod 1777 /run/shm log_info_msg "Mounting virtual file systems: ${INFO}/run" diff --git a/bootscripts/lfs/init.d/setclock b/bootscripts/lfs/init.d/setclock index 00345c84e..8bf3f402d 100644 --- a/bootscripts/lfs/init.d/setclock +++ b/bootscripts/lfs/init.d/setclock @@ -13,7 +13,7 @@ ######################################################################## ### BEGIN INIT INFO -# Provides: $time +# Provides: # Required-Start: # Should-Start: modules # Required-Stop: diff --git a/bootscripts/lfs/init.d/udev b/bootscripts/lfs/init.d/udev index 1246d6dad..5628545f6 100644 --- a/bootscripts/lfs/init.d/udev +++ b/bootscripts/lfs/init.d/udev @@ -13,7 +13,7 @@ ######################################################################## ### BEGIN INIT INFO -# Provides: udev +# Provides: udev $time # Required-Start: # Should-Start: modules # Required-Stop: diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 5c1bc3ef5..5cb830581 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -36,6 +36,26 @@ --> + + 2012-05-20 + + + [bdubbs] - Remove a bashism from the mountkernfs boot script. + + + + [bdubbs] - Move the $time init capability from setclock + to udev. Fixes + #3085. + + + [bdubbs] - Remove and recreate $LFS/dev/shm in Section 6.2 + if it is a symbolic link. Fixes + #3085. + + + + 2012-05-18 diff --git a/chapter06/kernfs.xml b/chapter06/kernfs.xml index bb06cfec8..50128b76a 100644 --- a/chapter06/kernfs.xml +++ b/chapter06/kernfs.xml @@ -69,10 +69,22 @@ mknod -m 666 $LFS/dev/null c 1 3 Now mount the remaining virtual kernel filesystems: mount -vt devpts devpts $LFS/dev/pts -mount -vt tmpfs shm $LFS/dev/shm mount -vt proc proc $LFS/proc mount -vt sysfs sysfs $LFS/sys + In some host systems, /dev/shm is a + symbolic link to /run/shm. + Inside a chroot envirnment, this symbolic link needs to be + changed to a normal directory before mounting as a temporary + file system: + +if [ -h /dev/shm ]; then + rm -f $LFS/dev/shm + mkdir $LFS/dev/shm +fi + +mount -vt tmpfs shm $LFS/dev/shm + diff --git a/general.ent b/general.ent index 37faddf6b..2e6a4a863 100644 --- a/general.ent +++ b/general.ent @@ -1,5 +1,5 @@ - - + + diff --git a/packages.ent b/packages.ent index c24b70f9a..d1628a5a2 100644 --- a/packages.ent +++ b/packages.ent @@ -302,7 +302,7 @@ - +