diff options
author | Ricardo Salveti <ricardo@foundries.io> | 2020-10-15 12:27:10 -0300 |
---|---|---|
committer | Anatoliy Odukha <aodukha@gmail.com> | 2020-10-29 13:42:12 +0200 |
commit | 1118ab2e1f36a475472d534e0f6665a5508a41be (patch) | |
tree | 194449223f55587839b54ca14898211a5c0beff6 /recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb | |
parent | 6c6260c857f58b817d24ed662b58bfb9930c9070 (diff) | |
download | meta-updater-1118ab2e1f36a475472d534e0f6665a5508a41be.tar.gz |
ostree-kernel-initramfs: add back initramfs fit workaround
Previous initramfs fit specific workaround was removed as part of commit
6eecf1593d, causing ostree to provide an init argument as part of the
kernel command line arguments when it is not really needed.
Bring back the workaround by simply generating an empty file in case
kernel image type is fit and initramfs is also used by the target.
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Diffstat (limited to 'recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb')
-rw-r--r-- | recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb b/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb index 136bb22..94010f7 100644 --- a/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb +++ b/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb | |||
@@ -36,7 +36,13 @@ do_install() { | |||
36 | 36 | ||
37 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} $kerneldir/vmlinuz | 37 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} $kerneldir/vmlinuz |
38 | 38 | ||
39 | if [ "${KERNEL_IMAGETYPE}" != "fitImage" ]; then | 39 | if [ "${KERNEL_IMAGETYPE}" = "fitImage" ]; then |
40 | if [ -n "${INITRAMFS_IMAGE}" ]; then | ||
41 | # this is a hack for ostree not to override init= in kernel cmdline - | ||
42 | # make it think that the initramfs is present (while it is in FIT image) | ||
43 | touch $kerneldir/initramfs.img | ||
44 | fi | ||
45 | else | ||
40 | if [ -n "${INITRAMFS_IMAGE}" ]; then | 46 | if [ -n "${INITRAMFS_IMAGE}" ]; then |
41 | cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.${INITRAMFS_FSTYPES} $kerneldir/initramfs.img | 47 | cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.${INITRAMFS_FSTYPES} $kerneldir/initramfs.img |
42 | fi | 48 | fi |