ALT Linux Bugzilla
– Attachment 9162 Details for
Bug 39581
Не монтируется /home после загрузки ядра
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
patch
file_39581.txt (text/plain), 1.41 KB, created by
Олег Соловьев
on 2021-01-28 09:45:55 MSK
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Олег Соловьев
Created:
2021-01-28 09:45:55 MSK
Size:
1.41 KB
patch
obsolete
>diff --git a/installer/preinstall.d/08-crypttab.sh b/installer/preinstall.d/08-crypttab.sh >index 31fd1e6..920d3b4 100755 >--- a/installer/preinstall.d/08-crypttab.sh >+++ b/installer/preinstall.d/08-crypttab.sh >@@ -4,20 +4,19 @@ > > [ -f /tmp/fstab ] || exit 0 > >-for device in $(find /dev/ -name 'dm-*' -type b); >+for device in $(findmnt -neo SOURCE -F /tmp/fstab); > do >- uuid=$(blkid -o value -s UUID "$device") >- fgrep "$uuid" "/tmp/fstab" &> /dev/null || continue >+ # filter out non-luks devices >+ MAJMIN="$(findmnt $device -rno MAJ:MIN)" >+ device_luks="/dev/"$(ls -1 "/sys/dev/block/$MAJMIN/slaves/") >+ [ "$(blkid -o value -s TYPE "$device_luks")" = "crypto_LUKS" ] || continue >+ > # we should add luks feature to initrd if / is placed on luks > # or create /etc/crypttab otherwise >- if grep -qe ".*$uuid.*[^[:alnum:]]/[^[:alnum:]]" "/tmp/fstab"; then >+ if [ "$(findmnt $device -no TARGET -F /tmp/fstab)" = "/" ]; then > echo 'FEATURES += luks' >> $destdir/etc/initrd.mk >- exit 0 > fi > >- device_luks="/dev/"$(ls "/sys/block/$(basename "$device")/slaves/") >- [ "$(blkid -o value -s TYPE "$device_luks")" = "crypto_LUKS" ] || continue >- > luks_uuid=$(blkid -o value -s UUID "$device_luks") > > [ -r "$destdir/etc/crypttab" ] && fgrep "$luks_uuid" "$destdir/etc/crypttab" &> /dev/null && continue
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39581
:
9142
|
9147
|
9151
|
9161
| 9162