mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-20 09:00:57 +00:00
kexec-save-default + luks_functions : suppress "Failed to set up async io, using sync io" warning thrown by lvm vgscan
TODO: eventually refactor this out or silence no encrypted lvm found echos in code: who use encrypted LVM nowadays? I think this was pre QubesOS 3.2 era but not even sure anymore. Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
f572998ea4
commit
741d721402
@ -38,7 +38,7 @@ PRIMHASH_FILE="$paramsdir/kexec_primhdl_hash.txt"
|
||||
KEY_DEVICES="$paramsdir/kexec_key_devices.txt"
|
||||
KEY_LVM="$paramsdir/kexec_key_lvm.txt"
|
||||
|
||||
lvm_suggest=$(lvm vgscan | awk -F '"' {'print $1'} | tail -n +2)
|
||||
lvm_suggest=$(lvm vgscan 2>/dev/null | awk -F '"' {'print $1'} | tail -n +2)
|
||||
num_lvm=$(echo "$lvm_suggest" | wc -l)
|
||||
if [ "$num_lvm" -eq 1 ] && [ -n "$lvm_suggest" ]; then
|
||||
lvm_volume_group="$lvm_suggest"
|
||||
|
@ -8,7 +8,7 @@
|
||||
# List all LUKS devices on the system that are not USB
|
||||
list_local_luks_devices() {
|
||||
TRACE_FUNC
|
||||
lvm vgscan || true
|
||||
lvm vgscan 2>/dev/null || true
|
||||
blkid | cut -d ':' -f 1 | while read -r device; do
|
||||
DEBUG "Checking device: $device"
|
||||
if cryptsetup isLuks "$device"; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user