Changeset 288c825


Ignore:
Timestamp:
09/28/2020 01:39:36 PM (13 months ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.1, 11.0, ken/refactor-virt, lazarus, qt5new, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
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.