From 146df0a2eaed0fc560c6fbe6bba3066360964579 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Mon, 31 Jul 2023 20:20:00 +0200 Subject: [PATCH] include initramfs image to boot partition --- conf/layer.conf | 1 - recipes-core/images/core-image-minimal.bbappend | 2 +- wic/rpi.wks.in | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/conf/layer.conf b/conf/layer.conf index a791c6a..8f50c34 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -16,7 +16,6 @@ PACKAGE_CLASSES = "package_ipk" INITRAMFS_IMAGE="core-image-minimal-initramfs" INITRAMFS_IMAGE_BUNDLE="1" -INITRAMFS_KERNEL_IMAGE="recovery-initramfs-${MACHINE}.bin" INHERIT += "rm_work" diff --git a/recipes-core/images/core-image-minimal.bbappend b/recipes-core/images/core-image-minimal.bbappend index b06c199..a81d621 100644 --- a/recipes-core/images/core-image-minimal.bbappend +++ b/recipes-core/images/core-image-minimal.bbappend @@ -12,7 +12,7 @@ EXTRA_USERS_PARAMS = "usermod -p 2Pe/4xyFxsokE diya; \ usermod -a -G avahi diya; \ usermod -a -G sudo diya \ " -IMAGE_BOOT_FILES:append = "fs_resize recovery-initramfs-${MACHINE}.bin " +IMAGE_BOOT_FILES:append = "fs_resize Image-initramfs-${MACHINE}.bin " IMAGE_INSTALL:append = "libcurl \ libdrm \ diff --git a/wic/rpi.wks.in b/wic/rpi.wks.in index 924df0b..598677d 100644 --- a/wic/rpi.wks.in +++ b/wic/rpi.wks.in @@ -2,7 +2,7 @@ # long-description: Creates a partitioned SD card image for use with # Raspberry Pi. Boot files are located in the first vfat partition. -part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 100 +part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 32 # read only roofs part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096 --size 150 --exclude-path home/ var/etc/ # modifiable configurations stored in /var/etc