Advertisement
tamjan

Gentoo dracut-053-r1, cryptsetup-2.3.6-r2 patch

Oct 3rd, 2021
1,386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.75 KB | None | 0 0
  1. --- /usr/lib/dracut/modules.d/90crypt/parse-crypt.sh.orig 2021-02-23 16:11:01.000000000 +0100
  2. +++ /usr/lib/dracut/modules.d/90crypt/parse-crypt.sh      2021-10-03 09:05:33.178542183 +0200
  3. @@ -164,7 +164,7 @@
  4.              if [ $is_keysource -eq 0 ]; then
  5.                  uuid=$luksid
  6.                  while [ "$uuid" != "${uuid#*-}" ]; do uuid=${uuid%%-*}${uuid#*-}; done
  7. -                printf -- '[ -e /dev/disk/by-id/dm-uuid-CRYPT-LUKS?-*%s*-* ] || exit 1\n' $uuid \
  8. +                printf -- '[ -e /dev/disk/by-id/dm-uuid-CRYPT-LUKS?-*%s*-* -o -e /dev/mapper/%s ] || exit 1\n' $uuid $luksname \
  9.                      >> "$hookdir/initqueue/finished/90-crypt.sh"
  10.                  {
  11.                      printf -- '[ -e /dev/disk/by-uuid/*%s* ] || ' $luksid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement