diff options
Diffstat (limited to 'meta/recipes-core/initrdscripts')
6 files changed, 30 insertions, 8 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index 43b75b0175..82b0aa819e 100644 --- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh +++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh | |||
@@ -8,8 +8,19 @@ | |||
8 | 8 | ||
9 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | 9 | PATH=/sbin:/bin:/usr/sbin:/usr/bin |
10 | 10 | ||
11 | # We need 20 Mb for the boot partition | 11 | # figure out how big of a boot partition we need |
12 | boot_size=20 | 12 | boot_size=$(du -ms /run/media/$1/ | awk '{print $1}') |
13 | # remove rootfs.img ($2) from the size if it exists, as its not installed to /boot | ||
14 | if [ -e /run/media/$1/$2 ]; then | ||
15 | boot_size=$(( boot_size - $( du -ms /run/media/$1/$2 | awk '{print $1}') )) | ||
16 | fi | ||
17 | # remove initrd from size since its not currently installed | ||
18 | if [ -e /run/media/$1/initrd ]; then | ||
19 | boot_size=$(( boot_size - $( du -ms /run/media/$1/initrd | awk '{print $1}') )) | ||
20 | fi | ||
21 | # add 10M to provide some extra space for users and account | ||
22 | # for rounding in the above subtractions | ||
23 | boot_size=$(( boot_size + 10 )) | ||
13 | 24 | ||
14 | # 5% for swap | 25 | # 5% for swap |
15 | swap_ratio=5 | 26 | swap_ratio=5 |
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh index aa9476660b..28e8f09d19 100644 --- a/meta/recipes-core/initrdscripts/files/init-install.sh +++ b/meta/recipes-core/initrdscripts/files/init-install.sh | |||
@@ -7,8 +7,19 @@ | |||
7 | 7 | ||
8 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | 8 | PATH=/sbin:/bin:/usr/sbin:/usr/bin |
9 | 9 | ||
10 | # We need 20 Mb for the boot partition | 10 | # figure out how big of a boot partition we need |
11 | boot_size=20 | 11 | boot_size=$(du -ms /run/media/$1/ | awk '{print $1}') |
12 | # remove rootfs.img ($2) from the size if it exists, as its not installed to /boot | ||
13 | if [ -e /run/media/$1/$2 ]; then | ||
14 | boot_size=$(( boot_size - $( du -ms /run/media/$1/$2 | awk '{print $1}') )) | ||
15 | fi | ||
16 | # remove initrd from size since its not currently installed | ||
17 | if [ -e /run/media/$1/initrd ]; then | ||
18 | boot_size=$(( boot_size - $( du -ms /run/media/$1/initrd | awk '{print $1}') )) | ||
19 | fi | ||
20 | # add 10M to provide some extra space for users and account | ||
21 | # for rounding in the above subtractions | ||
22 | boot_size=$(( boot_size + 10 )) | ||
12 | 23 | ||
13 | # 5% for the swap | 24 | # 5% for the swap |
14 | swap_ratio=5 | 25 | swap_ratio=5 |
diff --git a/meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb index 2a7f84ddc8..f588a1077b 100644 --- a/meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb +++ b/meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb | |||
@@ -5,7 +5,7 @@ SRC_URI = "file://init-install-efi.sh" | |||
5 | 5 | ||
6 | PR = "r1" | 6 | PR = "r1" |
7 | 7 | ||
8 | RDEPENDS_${PN} = "parted e2fsprogs-mke2fs dosfstools util-linux-blkid" | 8 | RDEPENDS_${PN} = "parted e2fsprogs-mke2fs dosfstools util-linux-blkid ${VIRTUAL-RUNTIME_base-utils}" |
9 | 9 | ||
10 | S = "${WORKDIR}" | 10 | S = "${WORKDIR}" |
11 | 11 | ||
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" | |||
7 | 7 | ||
8 | S = "${WORKDIR}" | 8 | S = "${WORKDIR}" |
9 | 9 | ||
10 | RDEPENDS_${PN} = "grub parted e2fsprogs-mke2fs util-linux-blkid" | 10 | RDEPENDS_${PN} = "grub parted e2fsprogs-mke2fs util-linux-blkid ${VIRTUAL-RUNTIME_base-utils}" |
11 | 11 | ||
12 | do_install() { | 12 | do_install() { |
13 | install -m 0755 ${WORKDIR}/init-install.sh ${D}/install.sh | 13 | install -m 0755 ${WORKDIR}/init-install.sh ${D}/install.sh |
diff --git a/meta/recipes-core/initrdscripts/initramfs-module-install-efi_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-module-install-efi_1.0.bb index 1e7f76fd56..78a61cde25 100644 --- a/meta/recipes-core/initrdscripts/initramfs-module-install-efi_1.0.bb +++ b/meta/recipes-core/initrdscripts/initramfs-module-install-efi_1.0.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | SUMMARY = "initramfs-framework module for EFI installation option" | 1 | SUMMARY = "initramfs-framework module for EFI installation option" |
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
4 | RDEPENDS_${PN} = "initramfs-framework-base parted e2fsprogs-mke2fs dosfstools util-linux-blkid" | 4 | RDEPENDS_${PN} = "initramfs-framework-base parted e2fsprogs-mke2fs dosfstools util-linux-blkid ${VIRTUAL-RUNTIME_base-utils}" |
5 | 5 | ||
6 | PR = "r4" | 6 | PR = "r4" |
7 | 7 | ||
diff --git a/meta/recipes-core/initrdscripts/initramfs-module-install_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-module-install_1.0.bb index 02b69f37a4..04e90cd302 100644 --- a/meta/recipes-core/initrdscripts/initramfs-module-install_1.0.bb +++ b/meta/recipes-core/initrdscripts/initramfs-module-install_1.0.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | SUMMARY = "initramfs-framework module for installation option" | 1 | SUMMARY = "initramfs-framework module for installation option" |
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
4 | RDEPENDS_${PN} = "initramfs-framework-base grub parted e2fsprogs-mke2fs util-linux-blkid" | 4 | RDEPENDS_${PN} = "initramfs-framework-base grub parted e2fsprogs-mke2fs util-linux-blkid ${VIRTUAL-RUNTIME_base-utils}" |
5 | 5 | ||
6 | # The same restriction as grub | 6 | # The same restriction as grub |
7 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)' | 7 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)' |