2023-08-01 12:06:45 +02:00
|
|
|
|
|
|
|
DESCRIPTION = "Recovery initramfs image."
|
|
|
|
|
2023-08-01 12:45:14 +02:00
|
|
|
|
2023-08-02 15:59:05 +02:00
|
|
|
PACKAGE_INSTALL = "recovery-boot \
|
|
|
|
dosfstools \
|
|
|
|
e2fsprogs \
|
|
|
|
util-linux-fsck \
|
|
|
|
kernel-modules \
|
|
|
|
busybox \
|
|
|
|
sysvinit \
|
|
|
|
sysvinit-inittab \
|
|
|
|
${VIRTUAL-RUNTIME_base-utils} \
|
|
|
|
udev \
|
|
|
|
initscripts \
|
|
|
|
base-passwd \
|
|
|
|
${ROOTFS_BOOTSTRAP_INSTALL}"
|
2023-08-01 12:06:45 +02:00
|
|
|
|
|
|
|
# Do not pollute the initrd image with rootfs features
|
|
|
|
IMAGE_FEATURES = ""
|
|
|
|
|
2023-08-01 14:46:39 +02:00
|
|
|
export IMAGE_BASENAME = "${MLPREFIX}recovery"
|
2023-08-01 12:06:45 +02:00
|
|
|
IMAGE_NAME_SUFFIX ?= ""
|
|
|
|
IMAGE_LINGUAS = ""
|
|
|
|
|
|
|
|
LICENSE = "MIT"
|
|
|
|
|
|
|
|
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
|
2023-08-01 22:55:15 +02:00
|
|
|
inherit core-image extrausers
|
2023-08-01 12:06:45 +02:00
|
|
|
|
|
|
|
IMAGE_ROOTFS_SIZE = "8192"
|
|
|
|
IMAGE_ROOTFS_EXTRA_SPACE = "0"
|
|
|
|
|
2023-08-01 22:55:15 +02:00
|
|
|
EXTRA_USERS_PARAMS = "usermod -p 2Pe/4xyFxsokE root "
|
|
|
|
|
2023-08-01 12:06:45 +02:00
|
|
|
# Use the same restriction as initramfs-module-install
|
2023-08-01 15:15:49 +02:00
|
|
|
COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)'
|
|
|
|
|
2023-08-01 18:59:16 +02:00
|
|
|
IMAGE_PREPROCESS_COMMAND += "image_patch;"
|
2023-08-01 15:15:49 +02:00
|
|
|
|
2023-08-01 18:59:16 +02:00
|
|
|
image_patch () {
|
|
|
|
# delete unused image
|
2023-08-01 15:33:24 +02:00
|
|
|
rm -rf ${IMAGE_ROOTFS}/boot/*
|
2023-08-02 15:59:05 +02:00
|
|
|
# patch inittab runlevel 6
|
|
|
|
|
2023-08-01 15:15:49 +02:00
|
|
|
}
|