@@ -12,6 +12,6 @@ INSTALLER_WKS_FILE ??= "installer-efi.wks.in"
WKS_FILE = "${INSTALLER_WKS_FILE}"
IMAGER_INSTALL:wic:append = " systemd-boot"
-IMAGE_INSTALL += "deploy-image"
+IMAGE_INSTALL += "deploy-image-service"
IMAGE_INSTALL:remove = "expand-on-first-boot"
new file mode 100644
@@ -0,0 +1,21 @@
+# This software is a part of ISAR.
+# Copyright (C) Siemens AG, 2024
+#
+# SPDX-License-Identifier: MIT
+
+DESCRIPTION = "systemd service to add target image to rootfs"
+
+
+inherit dpkg-raw
+
+SRC_URI = "file://install.override.conf \
+ "
+DEPENDS += " deploy-image"
+DEBIAN_DEPENDS = "deploy-image"
+
+do_install[cleandirs] = "${D}/usr/lib/systemd/system/getty@tty1.service.d/ \
+ ${D}/usr/lib/systemd/system/serial-getty@ttyS0.service.d/"
+do_install() {
+ install -m 0600 ${WORKDIR}/install.override.conf ${D}/usr/lib/systemd/system/getty@tty1.service.d/override.conf
+ install -m 0600 ${WORKDIR}/install.override.conf ${D}/usr/lib/systemd/system/serial-getty@ttyS0.service.d/override.conf
+}
similarity index 100%
rename from meta-isar/recipes-installer/deploy-image/files/install.override.conf
rename to meta-isar/recipes-installer/deploy-image-service/files/install.override.conf
@@ -8,14 +8,10 @@ DESCRIPTION = "Install image to device"
inherit dpkg-raw
SRC_URI = "file://deploy-image-wic.sh \
- file://install.override.conf \
"
DEBIAN_DEPENDS = "bmap-tools, pv, dialog, util-linux, parted, fdisk, gdisk, pigz, xz-utils, pbzip2, zstd"
do_install[cleandirs] = "${D}/usr/bin/ \
- ${D}/usr/lib/systemd/system/getty@tty1.service.d/ \
- ${D}/usr/lib/systemd/system/serial-getty@ttyS0.service.d/"
+ "
do_install() {
- install -m 0755 ${WORKDIR}/deploy-image-wic.sh ${D}/usr/bin/deploy-image-wic.sh
- install -m 0600 ${WORKDIR}/install.override.conf ${D}/usr/lib/systemd/system/getty@tty1.service.d/override.conf
- install -m 0600 ${WORKDIR}/install.override.conf ${D}/usr/lib/systemd/system/serial-getty@ttyS0.service.d/override.conf
+ install -m 0755 ${WORKDIR}/deploy-image-wic.sh ${D}/usr/bin/deploy-image-wic.sh
}