diff --git a/os/package/oci-runtime-bundle/Config.in b/os/package/oci-runtime-bundle/Config.in index 10df840..62e9cf7 100644 --- a/os/package/oci-runtime-bundle/Config.in +++ b/os/package/oci-runtime-bundle/Config.in @@ -24,4 +24,10 @@ config BR2_PACKAGE_OCI_RUNTIME_BUNDLE_CONTAINER_NAME help Name to give to the container started by crun +config BR2_PACKAGE_OCI_RUNTIME_BUNDLE_SYSTEMD_INSTALL_DIR + string "oci-runtime-bundle-systemd-install-dir" + default "/usr/lib/systemd/system" + help + Directory to place the systemd unit file for the OCI runtime bundle service + endif diff --git a/os/package/oci-runtime-bundle/oci-runtime-bundle.mk b/os/package/oci-runtime-bundle/oci-runtime-bundle.mk index 5028cca..65ea483 100644 --- a/os/package/oci-runtime-bundle/oci-runtime-bundle.mk +++ b/os/package/oci-runtime-bundle/oci-runtime-bundle.mk @@ -20,12 +20,12 @@ define OCI_RUNTIME_BUNDLE_INSTALL_TARGET_CMDS endef define OCI_RUNTIME_BUNDLE_INSTALL_INIT_SYSTEMD - mkdir -p $(TARGET_DIR)/usr/lib/systemd/system + mkdir -p $(TARGET_DIR)$(BR2_PACKAGE_OCI_RUNTIME_BUNDLE_SYSTEMD_INSTALL_DIR) sed -e "s%@OCI_RUNTIME_BUNDLE_MOUNT_DIR@%$(BR2_PACKAGE_OCI_RUNTIME_BUNDLE_MOUNT_DIR)%g" \ -e "s%@OCI_RUNTIME_BUNDLE_MOUNT_LABEL@%$(BR2_PACKAGE_OCI_RUNTIME_BUNDLE_MOUNT_LABEL)%g" \ -e "s%@OCI_RUNTIME_BUNDLE_CONTAINER_NAME@%$(BR2_PACKAGE_OCI_RUNTIME_BUNDLE_CONTAINER_NAME)%g" \ $(OCI_RUNTIME_BUNDLE_PKGDIR)/oci-runtime-bundle.service.in \ - > $(TARGET_DIR)/usr/lib/systemd/system/oci-runtime-bundle.service + > $(TARGET_DIR)$(BR2_PACKAGE_OCI_RUNTIME_BUNDLE_SYSTEMD_INSTALL_DIR)/oci-runtime-bundle.service endef $(eval $(generic-package))