Browse Source

crypt/module-setup.sh: also handle UUID= while filtering crypttab

The crypttab filter for host-only did not handle UUID= entries.
https://bugzilla.redhat.com/show_bug.cgi?id=919752
master
Harald Hoyer 12 years ago
parent
commit
cdcb27a4fe
  1. 4
      modules.d/90crypt/module-setup.sh

4
modules.d/90crypt/module-setup.sh

@ -62,6 +62,10 @@ install() { @@ -62,6 +62,10 @@ install() {
while read _mapper _dev _rest; do
[[ $_mapper = \#* ]] && continue
[[ $_dev ]] || continue

[[ $_dev == UUID=* ]] && \
_dev="/dev/disk/by-uuid/${_dev#UUID=}"

for _hdev in "${!host_fs_types[@]}"; do
[[ ${host_fs_types[$_hdev]} == "crypto_LUKS" ]] || continue
if [[ $_hdev -ef $_dev ]] || [[ /dev/block/$_hdev -ef $_dev ]]; then

Loading…
Cancel
Save