diff options
author | Liwei Song <liwei.song@windriver.com> | 2019-03-20 23:19:13 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-25 23:13:48 +0000 |
commit | ba771bf192ec489e5b6b6c6c0a6f5e0d9763f1a7 (patch) | |
tree | 6758be617e9154cce8f801f0042777df67ecf4c0 /meta/recipes-core/initrdscripts/initramfs-framework | |
parent | 2d15516d403cffaefc2f6c006b95fcd48e2a2ae4 (diff) | |
download | poky-ba771bf192ec489e5b6b6c6c0a6f5e0d9763f1a7.tar.gz |
initramfs-framework: add lvm module
lvm module will initial lvm volume to support boot from
Logical Volume.
(From OE-Core rev: 3a4213f014fc4aa5be05dfc0722d87e01e5ff10c)
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework')
-rw-r--r-- | meta/recipes-core/initrdscripts/initramfs-framework/lvm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/lvm b/meta/recipes-core/initrdscripts/initramfs-framework/lvm new file mode 100644 index 0000000000..7deeccb9a2 --- /dev/null +++ b/meta/recipes-core/initrdscripts/initramfs-framework/lvm | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | lvm_enabled() { | ||
4 | if ! lvscan |grep -i -w "inactive" &>/dev/null;then | ||
5 | return 1 | ||
6 | fi | ||
7 | return 0 | ||
8 | } | ||
9 | |||
10 | lvm_run() { | ||
11 | lvm pvscan --cache --activate ay | ||
12 | udevadm trigger --action=add | ||
13 | } | ||