mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Sync lsb-v3 scripts to LFS-Bootscripts-20100529 (udev changes).
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9290 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
b21778bc31
commit
3179cd695f
@ -1,4 +1,8 @@
|
|||||||
ChangeLog
|
ChangeLog
|
||||||
|
20100529 - [dj] * Sync to LFS-Bootscirpts-20100529
|
||||||
|
* Add test if /dev is already mounted in udev script.
|
||||||
|
* Added --action=add to udevadmin trigger lines of udev script.
|
||||||
|
|
||||||
20100427 - [dj] * Removed unneeded X-LFS-Default* lines.
|
20100427 - [dj] * Removed unneeded X-LFS-Default* lines.
|
||||||
* Corrected udev_retry script for new udev.
|
* Corrected udev_retry script for new udev.
|
||||||
* Corrected path of syslogd and klogd in sysklogd script.
|
* Corrected path of syslogd and klogd in sysklogd script.
|
||||||
|
@ -37,7 +37,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').
|
||||||
mount -n -t tmpfs tmpfs /dev -o mode=755
|
if ! mountpoint /dev > /dev/null; then
|
||||||
|
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}
|
||||||
@ -63,7 +65,7 @@ case "${1}" in
|
|||||||
|
|
||||||
# Now traverse /sys in order to "coldplug" devices that have
|
# Now traverse /sys in order to "coldplug" devices that have
|
||||||
# already been discovered
|
# already been discovered
|
||||||
/sbin/udevadm trigger
|
/sbin/udevadm trigger --action=add
|
||||||
|
|
||||||
# Now wait for udevd to process the uevents we triggered
|
# Now wait for udevd to process the uevents we triggered
|
||||||
/sbin/udevadm settle
|
/sbin/udevadm settle
|
||||||
|
@ -33,7 +33,7 @@ case "${1}" in
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Re-trigger the failed uevents in hope they will succeed now
|
# Re-trigger the failed uevents in hope they will succeed now
|
||||||
/sbin/udevadm trigger --type=failed
|
/sbin/udevadm trigger --type=failed --action=add
|
||||||
|
|
||||||
# Now wait for udevd to process the uevents we triggered
|
# Now wait for udevd to process the uevents we triggered
|
||||||
/sbin/udevadm settle
|
/sbin/udevadm settle
|
||||||
|
Loading…
Reference in New Issue
Block a user