mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 11:49:20 +01:00
Check that /dev isn't already mounted in the udev bootscript. Fixes #2550.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9160 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
0152a7b7b9
commit
f78845c7a8
@ -1,3 +1,7 @@
|
|||||||
|
2010-01-24 Matthew Burgess <matthew@linuxfromscratch.org>
|
||||||
|
* lfs/init.d/udev: Check to see if /dev is already mounted, as it may be if
|
||||||
|
under an initramfs environment. See ticket #2550.
|
||||||
|
|
||||||
2009-08-14 Bryan Kadzban <bryan@linuxfromscratch.org>
|
2009-08-14 Bryan Kadzban <bryan@linuxfromscratch.org>
|
||||||
* lfs/init.d/udev_retry: Use "udevadm trigger --type=failed", which
|
* lfs/init.d/udev_retry: Use "udevadm trigger --type=failed", which
|
||||||
apparently replaced "--retry-failed" some time ago. "--retry-failed" is
|
apparently replaced "--retry-failed" some time ago. "--retry-failed" is
|
||||||
|
@ -34,7 +34,9 @@ case "${1}" in
|
|||||||
# made or removed during this boot don't affect the next one.
|
# made or removed during this boot don't affect the next one.
|
||||||
# The reason we don't write to mtab is because we don't ever
|
# The reason we don't write to mtab is because we don't ever
|
||||||
# want /dev to be unavailable (such as by `umount -a').
|
# want /dev to be unavailable (such as by `umount -a').
|
||||||
|
if ! mountpoint /dev > /dev/null; then
|
||||||
mount -n -t tmpfs tmpfs /dev -o mode=755
|
mount -n -t tmpfs tmpfs /dev -o mode=755
|
||||||
|
fi
|
||||||
if [ ${?} != 0 ]; then
|
if [ ${?} != 0 ]; then
|
||||||
echo_failure
|
echo_failure
|
||||||
boot_mesg -n "FAILURE:\n\nCannot mount a tmpfs" ${FAILURE}
|
boot_mesg -n "FAILURE:\n\nCannot mount a tmpfs" ${FAILURE}
|
||||||
|
@ -40,6 +40,11 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>2010-01-24</para>
|
<para>2010-01-24</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[matthew] Update to lfs-bootscripts-20100124, which checks that
|
||||||
|
/dev isn't already mounted. Fixes
|
||||||
|
<ulink url="&lfs-ticket-root;2550">#2550</ulink>.</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>[matthew] Don't create /lib/udev/devices/kmsg as Udev >= 142
|
<para>[matthew] Don't create /lib/udev/devices/kmsg as Udev >= 142
|
||||||
creates it automatically. Fixes
|
creates it automatically. Fixes
|
||||||
|
@ -285,7 +285,7 @@
|
|||||||
<!ENTITY less-ch6-du "2.9 MB">
|
<!ENTITY less-ch6-du "2.9 MB">
|
||||||
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
||||||
|
|
||||||
<!ENTITY lfs-bootscripts-version "20090817"> <!-- Scripts depend on this format -->
|
<!ENTITY lfs-bootscripts-version "20100124"> <!-- Scripts depend on this format -->
|
||||||
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile -->
|
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile -->
|
||||||
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
|
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
|
||||||
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
|
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
|
||||||
|
Loading…
Reference in New Issue
Block a user