Ignore:
Timestamp:
09/28/2020 01:39:36 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
a934691
Parents:
c9aeb560
Message:

mkinitramfs: remove the link of sh to bash

This link is not needed: the shell scripts all have #!/bin/sh
Also remove redundant additions of mdadm and udevd, which are added
to sbinfiles in a loop, and move all the additions to sbinfiles
to the same place so that it is easier to see what is in there.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/filesystems/initramfs.xml

    rc9aeb560 r288c825  
    119119done
    120120
     121# Add lvm if present (cannot be done with the others because it
     122# also needs dmsetup
     123if [ -x /sbin/lvm ] ; then sbinfiles="$sbinfiles lvm dmsetup"; fi
     124
    121125unsorted=$(mktemp /tmp/unsorted.XXXXXXXXXX)
    122126
     
    174178done
    175179
    176 # Add lvm if present
    177 if [ -x /sbin/lvm ] ; then sbinfiles="$sbinfiles lvm dmsetup"; fi
    178 
    179 # Add mdadm if present
    180 if [ -x /sbin/mdadm ] ; then sbinfiles="$sbinfiles mdadm"; fi
    181 
    182 # Add udevd if present in /sbin (newer versions of udev have it in
    183 # /lib/udev)
    184 if [ -x /sbin/udevd ] ; then sbinfiles="$sbinfiles udevd"; fi
    185 
    186180for f in $sbinfiles ; do
    187181  ldd /sbin/$f | sed "s/\t//" | cut -d " " -f1 &gt;&gt; $unsorted
     
    201195  ln -s kmod $WDIR/bin/insmod
    202196fi
    203 
    204 ln -s bash $WDIR/bin/sh
    205197
    206198# Add lvm symlinks if appropriate
Note: See TracChangeset for help on using the changeset viewer.