[rhinstaller/anaconda/pulls/127 master] Test that LVM device is encrypted.

dwlehman installerbot-noreply at redhat.com
Thu Jun 4 16:42:05 UTC 2015


My mistake -- for the second test you'd do this:

`by_type=$(blkid -ovalue  -sTYPE /dev/mapper/vg01-root_lv | grep crypto_LUKS)`

or you could test it for equality since it can only output one line:

```sh
by_path=$(blkid -odevice -t LABEL=root | grep -q '^/dev/mapper/luks-')
root_lv_type="$(blkid -ovalue  -sTYPE /dev/mapper/vg01-root_lv)"
if [ -z "$by_path" -a "$by_type" != "crypto_LUKS" ]; then
    echo "root LV is not encrypted" > /root/RESULT
fi
-- 
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/127


More information about the anaconda-patches mailing list