Changeset f350508 for postlfs/filesystems/initramfs.xml
- Timestamp:
- 06/09/2014 02:57:13 PM (10 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- b04b4154
- Parents:
- 6dc6bf4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/filesystems/initramfs.xml
r6dc6bf4 rf350508 95 95 binfiles="$binfiles umount sed sleep ln rm uname" 96 96 97 sbinfiles="udevadm modprobe blkid switch_root" 97 # Systemd installs udevadm in /bin. Other udev implementations have it in /sbin 98 if [ -x /bin/udevadm ] ; then binfiles="$binfiles udevadm"; fi 99 100 sbinfiles="modprobe blkid switch_root" 98 101 99 102 #Optional files and locations 100 for f in mdadm udevd ; do103 for f in mdadm udevd udevadm; do 101 104 if [ -x /sbin/$f ] ; then sbinfiles="$sbinfiles $f"; fi 102 105 done … … 132 135 cp -a /lib/firmware $WDIR/lib 133 136 134 # Copy the RAID configur eation file if present137 # Copy the RAID configuration file if present 135 138 if [ -f /etc/mdadm.conf ] ; then 136 139 cp /etc/mdadm.conf $WDIR/etc … … 165 168 # Add udevd libraries if not in /sbin 166 169 if [ -x /lib/udev/udevd ] ; then 167 ldd /lib/udev/udevd | sed "s/\t//" | cut -d " " -f1 >> $unsorted 170 ldd /lib/udev/udevd | sed "s/\t//" | cut -d " " -f1 >> $unsorted 171 elif [ -x /lib/systemd/systemd-udevd ] ; then 172 ldd /lib/systemd/systemd-udevd | sed "s/\t//" | cut -d " " -f1 >> $unsorted 168 173 fi 169 174 … … 209 214 done 210 215 211 cp -a /lib/udev $WDIR/lib 216 if [ -d /lib/udev ]; then 217 cp -a /lib/udev $WDIR/lib 218 fi 219 if [ -d /lib/systemd ]; then 220 cp -a /lib/systemd $WDIR/lib 221 fi 212 222 213 223 # Install the kernel modules if requested … … 322 332 # udevd location depends on version 323 333 if [ -x /sbin/udevd ]; then 324 UDEV_PATH=/sbin 334 UDEVD=/sbin/udevd 335 elif [ -x /lib/udev/udevd ]; then 336 UDEVD=/lib/udev/udevd 337 elif [ -x /lib/systemd/systemd-udevd ]; then 338 UDEVD=/lib/systemd/systemd-udevd 325 339 else 326 UDEV_PATH=/lib/udev 327 fi 328 329 ${UDEV_PATH}/udevd --daemon --resolve-names=never 340 echo "Cannot find udevd nor systemd-udevd" 341 problem 342 fi 343 344 ${UDEVD} --daemon --resolve-names=never 330 345 udevadm trigger 331 346 udevadm settle … … 337 352 do_mount_root 338 353 339 killall -w ${UDEV _PATH}/udevd354 killall -w ${UDEVD##*/} 340 355 341 356 exec switch_root /.root "$init" "$@"
Note:
See TracChangeset
for help on using the changeset viewer.