From 21586e595ac0856fe71e214fb6b49f3bf053b261 Mon Sep 17 00:00:00 2001 From: California Sullivan Date: Mon, 2 Apr 2018 18:40:04 -0700 Subject: initrdscripts: init-install(-efi).sh: don't assume 20M boot partition With multi kernel support in the installer we can exceed this limit. Calculate a sane size by checking the size of the original boot partition minus some objects we know won't be installed, plus some extra space for users. In addition, in the common case where only one small kernel is present to be installed, we actually get a smaller boot partition with less wasted space. Also add VIRTUAL-RUNTIME_base-utils to RDEPENDS where these scripts are used, as they're needed for the du command. [YOCTO #12583]. (From OE-Core rev: 2ca601bef44a07512c93b8452cf9001dce402617) Signed-off-by: California Sullivan Signed-off-by: Richard Purdie --- meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb') diff --git a/meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb index a553a0d8ba..9222d57c1a 100644 --- a/meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb +++ b/meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb @@ -7,7 +7,7 @@ PR = "r9" S = "${WORKDIR}" -RDEPENDS_${PN} = "grub parted e2fsprogs-mke2fs util-linux-blkid" +RDEPENDS_${PN} = "grub parted e2fsprogs-mke2fs util-linux-blkid ${VIRTUAL-RUNTIME_base-utils}" do_install() { install -m 0755 ${WORKDIR}/init-install.sh ${D}/install.sh -- cgit v1.2.3-54-g00ecf