diff options
author | Anton Gerasimov <anton@advancedtelematic.com> | 2016-10-04 14:42:42 +0200 |
---|---|---|
committer | Anton Gerasimov <anton@advancedtelematic.com> | 2016-10-04 14:42:42 +0200 |
commit | 689d2a8e825b3fc77bd4671f2c0597d2de5f0fdf (patch) | |
tree | 50da6e3b59d6e112c15eabd2a3d675d7334ab4ab /meta-sota/recipes-sota/ostree-initramfs/ostree-initramfs.bb | |
parent | 46b4d2dd4a44de0588426d69168415af3e01acac (diff) |
Tuned initrd image and pseudo environment to fix bugs with extended
security attributes.
Bug-AGL: SPEC-259
Change-Id: I44499ce3f5f1924aecf63689a93d1f20e779225e
Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
Diffstat (limited to 'meta-sota/recipes-sota/ostree-initramfs/ostree-initramfs.bb')
-rw-r--r-- | meta-sota/recipes-sota/ostree-initramfs/ostree-initramfs.bb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/meta-sota/recipes-sota/ostree-initramfs/ostree-initramfs.bb b/meta-sota/recipes-sota/ostree-initramfs/ostree-initramfs.bb deleted file mode 100644 index 5b3818c..0000000 --- a/meta-sota/recipes-sota/ostree-initramfs/ostree-initramfs.bb +++ /dev/null @@ -1,32 +0,0 @@ -# Small hook to call ostree-prepare-root on initrd-switch-root - -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe" - -S = "${WORKDIR}" - -SRC_URI = "file://COPYING.GPL" - -DEPENDS += " ostree" - -FILES_${PN} += "${systemd_unitdir} \ - ${systemd_unitdir}/system \ - ${systemd_unitdir}/system/initrd-switch-root.target.wants \ - ${systemd_unitdir}/system/initrd-switch-root.target.wants/ostree-prepare-root.service \ - ${sysconfdir}/initrd-release \ - " - -export OSTREE_INITRAMFS_IMAGE - -do_install() { - if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then - install -d ${D}${sysconfdir} - echo "NAME=${OSTREE_INITRAMFS_IMAGE}" > ${D}/${sysconfdir}/initrd-release - install -d ${D}${systemd_unitdir} - install -d ${D}${systemd_unitdir}/system - - install -d ${D}${systemd_unitdir}/system/initrd-switch-root.target.wants - ln -s ${systemd_unitdir}/system/ostree-prepare-root.service \ - "${D}${systemd_unitdir}/system/initrd-switch-root.target.wants/ostree-prepare-root.service" - fi -} |