mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
bootscripts: Use /bin/udevadm instead of /sbin/udevadm
We are switching from eudev to systemd-udev for SysV. Systemd installs udevadm into /usr/bin, and at least a part of its function can be used as non-root user, so we'll no longer put it into /usr/sbin.
This commit is contained in:
parent
1053282e5f
commit
c7ee38fb5a
@ -1,3 +1,6 @@
|
||||
2023-07-15 Xi Ruoyao <xry111@xry111.site>
|
||||
* Use /bin/udevadm instead of /sbin/udevadm.
|
||||
|
||||
2022-09-30 Bruce Dubbs <bdubbs@linuxfromscratch.org>
|
||||
* Mount /dev/shm as a tmpfs.
|
||||
|
||||
|
@ -49,13 +49,13 @@ case "${1}" in
|
||||
|
||||
# Now traverse /sys in order to "coldplug" devices that have
|
||||
# already been discovered
|
||||
/sbin/udevadm trigger --action=add --type=subsystems
|
||||
/sbin/udevadm trigger --action=add --type=devices
|
||||
/sbin/udevadm trigger --action=change --type=devices
|
||||
/bin/udevadm trigger --action=add --type=subsystems
|
||||
/bin/udevadm trigger --action=add --type=devices
|
||||
/bin/udevadm trigger --action=change --type=devices
|
||||
|
||||
# Now wait for udevd to process the uevents we triggered
|
||||
if ! is_true "$OMIT_UDEV_SETTLE"; then
|
||||
/sbin/udevadm settle
|
||||
/bin/udevadm settle
|
||||
fi
|
||||
|
||||
# If any LVM based partitions are on the system, ensure they
|
||||
|
@ -34,8 +34,6 @@ case "${1}" in
|
||||
start)
|
||||
log_info_msg "Retrying failed uevents, if any..."
|
||||
|
||||
# As of udev-186, the --run option is no longer valid
|
||||
#rundir=$(/sbin/udevadm info --run)
|
||||
rundir=/run/udev
|
||||
# From Debian: "copy the rules generated before / was mounted
|
||||
# read-write":
|
||||
@ -52,13 +50,13 @@ case "${1}" in
|
||||
/bin/sed -e 's/#.*$//' /etc/sysconfig/udev_retry | /bin/grep -v '^$' | \
|
||||
while read line ; do
|
||||
for subsystem in $line ; do
|
||||
/sbin/udevadm trigger --subsystem-match=$subsystem --action=add
|
||||
/bin/udevadm trigger --subsystem-match=$subsystem --action=add
|
||||
done
|
||||
done
|
||||
|
||||
# Now wait for udevd to process the uevents we triggered
|
||||
if ! is_true "$OMIT_UDEV_RETRY_SETTLE"; then
|
||||
/sbin/udevadm settle
|
||||
/bin/udevadm settle
|
||||
fi
|
||||
|
||||
evaluate_retval
|
||||
|
@ -390,7 +390,7 @@
|
||||
<!ENTITY less-fin-du "4.3 MB">
|
||||
<!ENTITY less-fin-sbu "less than 0.1 SBU">
|
||||
|
||||
<!ENTITY lfs-bootscripts-version "20230101"> <!-- Scripts depend on this format -->
|
||||
<!ENTITY lfs-bootscripts-version "20230715"> <!-- Scripts depend on this format -->
|
||||
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
|
||||
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
|
||||
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM">
|
||||
|
Loading…
Reference in New Issue
Block a user