mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
luks-functions: cleanup code of luks containers reported
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
4d72eb3120
commit
2aa9cfafb5
@ -10,8 +10,7 @@ list_luks_devices() {
|
||||
#generate a list of devices to choose from that contain a LUKS header
|
||||
lvm vgscan || true
|
||||
blkid | cut -d ':' -f 1 | while read device; do
|
||||
cryptsetup isLuks $device
|
||||
if [ $(echo $?) == 0 ]; then echo $device; fi
|
||||
if cryptsetup isLuks $device; then echo $device; fi
|
||||
done | sort
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user