Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions os/mkosi/mkosi.finalize
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ ARTIFACTS="$WORK/artifacts"
source "$SELF/versions.env"

"$SELF/scripts/normalize-skeleton-modes.sh" "$TREE" "$FLAVOR"
# After mkosi's own tmpfiles pass, so these override package defaults.
systemd-tmpfiles --root="$TREE" --create "$SELF/rootfs.tmpfiles"
# After mkosi's own tmpfiles pass, so these override package defaults. Run it
# in the image as root: a rootless build runs this script as the caller, which
# cannot chown to root. mkosi-chroot bind-mounts /etc/resolv.conf, so that link
# is made from outside.
mkosi-chroot systemd-tmpfiles --create --exclude-prefix=/etc/resolv.conf \
"$CHROOT_SRCDIR/dstack/os/mkosi/rootfs.tmpfiles"
ln -sfn /run/systemd/resolve/stub-resolv.conf "$TREE/etc/resolv.conf"
"$SELF/scripts/write-os-release.sh" \
"$TREE" "$DSTACK_VERSION" "$DSTACK_CODENAME"
mkdir -p "$KSTAGE/usr/lib" "$OUTPUTDIR/.image-tools"
Expand Down
Loading