@@ -8,10 +8,8 @@ inherit systemd
88DSTACK_MONOREPO_ROOT ?= "${@ os . path . realpath (os . path . join (d . getVar ('THISDIR' ), '../../../../../..' ))}"
99DSTACK_CORE_SRC ?= "${DSTACK_MONOREPO_ROOT} /dstack"
1010DSTACK_RUST_SDK_SRC ?= "${DSTACK_MONOREPO_ROOT} /sdk/rust"
11- DSTACK_ROOTFS_SRC ?= "${DSTACK_MONOREPO_ROOT} /os/common/rootfs"
1211
1312S = "${UNPACKDIR} /repo/dstack"
14- DSTACK_ROOTFS_FILES = "${UNPACKDIR} /repo/os/common/rootfs"
1513
1614DEPENDS += "rsync-native"
1715RDEPENDS :${PN} += "fuse3-utils kernel-module-fuse"
@@ -24,17 +22,16 @@ EXTRA_CARGO_FLAGS = "-p dstack-tee-simulator"
2422inherit cargo_bin
2523
2624do_unpack () {
27- install -d "${S} " "${UNPACKDIR} /repo/sdk/rust" " ${DSTACK_ROOTFS_FILES} "
25+ install -d "${S} " "${UNPACKDIR} /repo/sdk/rust"
2826 rsync -a --exclude = ".git" --exclude = ".worktrees" --exclude = "target" \
2927 "${DSTACK_CORE_SRC} /" "${S} /"
3028 rsync -a --exclude = ".git" --exclude = "target" \
3129 "${DSTACK_RUST_SDK_SRC} /" "${UNPACKDIR} /repo/sdk/rust/"
32- rsync -a "${DSTACK_ROOTFS_SRC} /" "${DSTACK_ROOTFS_FILES} /"
3330}
3431
3532do_unpack [cleandirs ] = "${UNPACKDIR} /repo"
3633do_unpack [nostamp ] = "1"
37- do_unpack [vardeps ] += "DSTACK_CORE_SRC DSTACK_RUST_SDK_SRC DSTACK_ROOTFS_SRC "
34+ do_unpack [vardeps ] += "DSTACK_CORE_SRC DSTACK_RUST_SDK_SRC"
3835
3936do_configure () {
4037 cargo_bin_do_configure
@@ -49,15 +46,20 @@ do_compile[network] = "1"
4946do_install () {
5047 install -d ${D}${bindir} ${D}${systemd_system_unitdir}
5148 install -m 0755 ${CARGO_BINDIR} /dstack -tee -simulator ${D}${bindir}
52- install -m 0644 ${DSTACK_ROOTFS_FILES} /dstack -tee -simulator . service \
49+ install -m 0644 ${THISDIR} / files /dstack -tee -simulator . service \
5350 ${D}${systemd_system_unitdir}
5451
5552 install -d ${D}${sysconfdir} /systemd /system /dstack -prepare . service . d
56- install -m 0644 \
57- ${DSTACK_ROOTFS_FILES} /dstack -prepare . service . d /tee -simulator . conf \
53+ install -m 0644 ${THISDIR} /files /tee -simulator . conf \
5854 ${D}${sysconfdir} /systemd /system /dstack -prepare . service . d /tee -simulator . conf
5955}
6056
57+ # Unit/drop-in live next to this recipe; include them in task checksums.
58+ do_install [file -checksums ] += "\
59+ ${THISDIR} /files/dstack-tee-simulator.service:True \
60+ ${THISDIR} /files/tee-simulator.conf:True \
61+ "
62+
6163FILES :${PN} += "${sysconfdir} /systemd/system/dstack-prepare.service.d/tee-simulator.conf"
6264
6365# Cargo embeds build paths into binaries; allow TMPDIR references.
0 commit comments