1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-12-28 19:38:21 +01:00
meta-rpi-diya/recipes-diya/initramfs/files/lvm
2023-08-01 14:19:39 +02:00

14 lines
186 B
Bash

#!/bin/sh
lvm_enabled() {
if ! lvscan |grep -i -w "inactive" &>/dev/null;then
return 1
fi
return 0
}
lvm_run() {
lvm pvscan --cache --activate ay
udevadm trigger --action=add
}