1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-08 06:28:23 +01:00

remove lvm in initramfs

This commit is contained in:
DanyLE 2023-08-01 15:01:27 +02:00
parent 19d0f0e84c
commit 8802d3b491
3 changed files with 1 additions and 17 deletions

View File

@ -2,7 +2,7 @@
DESCRIPTION = "Recovery initramfs image."
PACKAGE_INSTALL = "recovery-boot lvm2 busybox ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
PACKAGE_INSTALL = "recovery-boot busybox ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
# Do not pollute the initrd image with rootfs features
IMAGE_FEATURES = ""

View File

@ -1,13 +0,0 @@
#!/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
}

View File

@ -38,9 +38,6 @@ do_install() {
# debug
install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug
# lvm
install -m 0755 ${WORKDIR}/lvm ${D}/init.d/09-lvm
# Create device nodes expected by some kernels in initramfs
# before even executing /init.