diff options
Diffstat (limited to 'poky/meta/recipes-core/initrdscripts/initramfs-framework/lvm')
-rw-r--r-- | poky/meta/recipes-core/initrdscripts/initramfs-framework/lvm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/poky/meta/recipes-core/initrdscripts/initramfs-framework/lvm b/poky/meta/recipes-core/initrdscripts/initramfs-framework/lvm new file mode 100644 index 0000000000..7deeccb9a2 --- /dev/null +++ b/poky/meta/recipes-core/initrdscripts/initramfs-framework/lvm @@ -0,0 +1,13 @@ +#!/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 +} |