Ignore:
Timestamp:
05/23/2020 08:54:29 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 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:
2b7e89b
Parents:
4da7077
Message:

Various fixes in initramfs:

  • revert changes to the "copy" function from r23132
  • copy mdadm if it exists
  • add the PARTUUID case (patch by Alain Dumont)

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/filesystems/initramfs.xml

    r4da7077 r99ff4fad  
    7777
    7878  if [ "$2" = "lib" ]; then
    79     file=$(find /lib /usr/lib -maxdepth 1 -name $1 | head -n 1)
     79    file=$(PATH=/lib:/usr/lib type -p $1)
    8080  else
    81     file=$(find /bin /usr/bin /sbin /usr/sbin -maxdepth 1 -name $1 | head -n 1)
     81    file=$(type -p $1)
    8282  fi
    8383
     
    339339
    340340   case "$root" in
    341       /dev/* ) device=$root ;;
    342       UUID=* ) eval $root; device="/dev/disk/by-uuid/$UUID"  ;;
    343       LABEL=*) eval $root; device="/dev/disk/by-label/$LABEL" ;;
    344       ""     ) echo "No root device specified." ; problem    ;;
     341      /dev/*    ) device=$root ;;
     342      UUID=*    ) eval $root; device="/dev/disk/by-uuid/$UUID" ;;
     343      PARTUUID=*) eval $root; device="/dev/disk/by-partuuid/$PARTUUID" ;;
     344      LABEL=*   ) eval $root; device="/dev/disk/by-label/$LABEL" ;;
     345      ""        ) echo "No root device specified." ; problem ;;
    345346   esac
    346347
Note: See TracChangeset for help on using the changeset viewer.