Changeset c7ee38f


Ignore:
Timestamp:
07/16/2023 02:04:12 AM (11 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.0-rc1, 12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
a289860
Parents:
1053282
Message:

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.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/ChangeLog

    r1053282 rc7ee38f  
     12023-07-15 Xi Ruoyao <xry111@xry111.site>
     2   * Use /bin/udevadm instead of /sbin/udevadm.
     3
    142022-09-30 Bruce Dubbs <bdubbs@linuxfromscratch.org>
    25   * Mount /dev/shm as a tmpfs.
  • bootscripts/lfs/init.d/udev

    r1053282 rc7ee38f  
    5050      # Now traverse /sys in order to "coldplug" devices that have
    5151      # already been discovered
    52       /sbin/udevadm trigger --action=add    --type=subsystems
    53       /sbin/udevadm trigger --action=add    --type=devices
    54       /sbin/udevadm trigger --action=change --type=devices
     52      /bin/udevadm trigger --action=add    --type=subsystems
     53      /bin/udevadm trigger --action=add    --type=devices
     54      /bin/udevadm trigger --action=change --type=devices
    5555
    5656      # Now wait for udevd to process the uevents we triggered
    5757      if ! is_true "$OMIT_UDEV_SETTLE"; then
    58          /sbin/udevadm settle
     58         /bin/udevadm settle
    5959      fi
    6060
  • bootscripts/lfs/init.d/udev_retry

    r1053282 rc7ee38f  
    3535      log_info_msg "Retrying failed uevents, if any..."
    3636
    37       # As of udev-186, the --run option is no longer valid
    38       #rundir=$(/sbin/udevadm info --run)
    3937      rundir=/run/udev
    4038      # From Debian: "copy the rules generated before / was mounted
     
    5351      while read line ; do
    5452         for subsystem in $line ; do
    55             /sbin/udevadm trigger --subsystem-match=$subsystem --action=add
     53            /bin/udevadm trigger --subsystem-match=$subsystem --action=add
    5654         done
    5755      done
     
    5957      # Now wait for udevd to process the uevents we triggered
    6058      if ! is_true "$OMIT_UDEV_RETRY_SETTLE"; then
    61          /sbin/udevadm settle
     59         /bin/udevadm settle
    6260      fi
    6361
  • packages.ent

    r1053282 rc7ee38f  
    391391<!ENTITY less-fin-sbu "less than 0.1 SBU">
    392392
    393 <!ENTITY lfs-bootscripts-version "20230101">      <!-- Scripts depend on this format -->
     393<!ENTITY lfs-bootscripts-version "20230715">      <!-- Scripts depend on this format -->
    394394<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
    395395<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
Note: See TracChangeset for help on using the changeset viewer.