Ignore:
Timestamp:
11/03/2013 12:12:46 AM (10 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 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:
68934684
Parents:
2061231
Message:

Update initramfs for new LVM versions

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/filesystems/initramfs.xml

    r2061231 r50f410f  
    121121
    122122# Install the udev configuration files
    123 cp /etc/udev/udev.conf $WDIR/etc/udev/udev.conf
     123if [ -f /etc/udev/udev.conf ]; then
     124  cp /etc/udev/udev.conf $WDIR/etc/udev/udev.conf
     125fi
    124126
    125127for file in $(find /etc/udev/rules.d/ -type f) ; do
     
    154156
    155157# Add lvm if present
    156 if [ -x /sbin/lvm ] ; then sbinfiles="$sbinfiles lvm"; fi
     158if [ -x /sbin/lvm ] ; then sbinfiles="$sbinfiles lvm dmsetup"; fi
    157159
    158160for f in $sbinfiles ; do
     
    173175
    174176# Add lvm symlinks if appropriate
     177# Also copy the lvm.conf file
    175178if  [ -x /sbin/lvm ] ; then
    176179  ln -s lvm $WDIR/sbin/lvchange
     
    192195  ln -s lvm $WDIR/sbin/vgrename
    193196  ln -s lvm $WDIR/sbin/vgck
     197  # Conf file(s)
     198  cp -a /etc/lvm $WDIR/etc
    194199fi
    195200
     
    326331udevadm settle
    327332
    328 if [ -f /etc/mdadm.conf ] ; then mdadm -As                                    ; fi
    329 if [ -x /sbin/vgchange  ] ; then /sbin/vgchange --noudevsync -a y &gt; /dev/null ; fi
    330 if [ -n "$rootdelay"    ] ; then sleep "$rootdelay"                           ; fi
     333if [ -f /etc/mdadm.conf ] ; then mdadm -As                       ; fi
     334if [ -x /sbin/vgchange  ] ; then /sbin/vgchange -a y &gt; /dev/null ; fi
     335if [ -n "$rootdelay"    ] ; then sleep "$rootdelay"              ; fi
    331336
    332337do_mount_root
Note: See TracChangeset for help on using the changeset viewer.