Ignore:
Timestamp:
03/13/2012 11:33:42 PM (12 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 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:
f331c3e
Parents:
f8248d7
Message:

Updates to initramfs scripts

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9691 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/filesystems/initramfs.xml

    rf8248d7 r8253f9fc  
    9595binfiles="$binfiles umount sed sleep ln rm uname"
    9696
    97 sbinfiles="udevadm udevd modprobe blkid switch_root mdadm"
     97#Optional files and locations
     98for f in mdadm udevd; do
     99  if [ -x /sbin/$f ] ; then sbinfiles="$sbinfiles $f"; fi
     100done
    98101
    99102unsorted=$(mktemp /tmp/unsorted.XXXXXXXXXX)
     
    152155done
    153156
     157# Add udevd libraries if not in /sbin
     158if [ -x /lib/udev/udevd ] ; then
     159  ldd /lib/udev/udevd | sed "s/\t//" | cut -d " " -f1 >> $unsorted
     160fi
     161
    154162# Add module symlinks if appropriate
    155163if [ -n "$KERNEL_VERSION" ] &amp;&amp; [ -x /bin/kmod ] ; then
     
    161169if  [ -x /sbin/lvm ] ; then
    162170  ln -s lvm $WDIR/sbin/lvchange
    163   ln -s lvm $WDIR/sbin/lvchange
    164   ln -s lvm $WDIR/sbin/lvchange
     171  ln -s lvm $WDIR/sbin/lvrename
     172  ln -s lvm $WDIR/sbin/lvextend
    165173  ln -s lvm $WDIR/sbin/lvcreate
    166174  ln -s lvm $WDIR/sbin/lvdisplay
     
    180188
    181189# Install libraries
    182 sort $unsorted | uniq | while read lib ; do
    183   if [ "$lib" == "linux-vdso.so.1" ] ||
    184      [ "$lib" == "linux-gate.so.1" ]; then
     190sort $unsorted | uniq | while read library ; do
     191  if [ "$library" == "linux-vdso.so.1" ] ||
     192     [ "$library" == "linux-gate.so.1" ]; then
    185193    continue
    186194  fi
     
    199207     /lib/modules/$KERNEL_VERSION/kernel/drivers/usb/{host,storage}           \
    200208     -type f 2&gt; /dev/null | cpio --make-directories -p --quiet $WDIR
     209
     210  cp /lib/modules/$KERNEL_VERSION/modules.{builtin,order}                     \
     211            $WDIR/lib/modules/$KERNEL_VERSION
    201212
    202213  depmod -b $WDIR $KERNEL_VERSION
     
    297308done
    298309
    299 udevd --daemon --resolve-names=never
     310# udevd location depends on version
     311if [ -x /sbin/udevd ]; then
     312  UDEV_PATH=/sbin
     313else
     314  UDEV_PATH=/lib/udev
     315fi
     316
     317${UDEV_PATH}/udevd --daemon --resolve-names=never
    300318udevadm trigger
    301319udevadm settle
     
    307325do_mount_root
    308326
    309 killall -w /sbin/udevd
     327killall -w ${UDEV_PATH}/udevd
    310328
    311329exec switch_root /.root "$init" "$@"
Note: See TracChangeset for help on using the changeset viewer.