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:
Thierry Laurion 2025-04-16 11:08:09 -04:00
parent f572998ea4
commit 741d721402
No known key found for this signature in database
GPG Key ID: 9A53E1BB3FF00461
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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