From fa7f6e8be5b9d1ceba03d2d17accdefa25eb3bf4 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 22 May 2021 13:44:22 +0200 Subject: initramfs: Cleanup upstream scripts, dependencies - do not install initramfs-module-* scripts that we won't use, e.g. initramfs-module-install, initramfs-module-install-efi; this removes their unused dependencies (e.g. grub-pc, parted), making the initramfs smaller; Depends-on: I6ce592a609650f0528314c14e6a0a2a4984ba864 Change-Id: I59143aad9ae80ad4a9a7fcbfc066d4783bcf4f2a Signed-off-by: Alexandru Avadanii --- images/core-image-minimal-initramfs.bbappend | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'images/core-image-minimal-initramfs.bbappend') diff --git a/images/core-image-minimal-initramfs.bbappend b/images/core-image-minimal-initramfs.bbappend index 013463a..88dd198 100644 --- a/images/core-image-minimal-initramfs.bbappend +++ b/images/core-image-minimal-initramfs.bbappend @@ -1,8 +1,10 @@ PACKAGE_INSTALL += " nfv-installer kernel-modules" -# ostree-switchroot is used by the init script to switch root to the -# ostree version specified in the kernel command line -PACKAGE_INSTALL_append_sota = " ostree-switchroot" +INITRAMFS_SCRIPTS = " \ + initramfs-framework-base \ + initramfs-module-udev \ + initramfs-module-setup-live \ +" # run-postinsts does not belong in the minimal initramfs PACKAGE_INSTALL_remove = "run-postinsts" -- cgit v1.2.3-54-g00ecf