Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit e004da8

Browse files
committed
chore: write prepare-root file directly on image
Signed-off-by: Tulip Blossom <tulilirockz@proton.me>
1 parent 31c1927 commit e004da8

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Containerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ RUN sed -i 's|^HOME=.*|HOME=/var/home|' "${BOOTC_ROOTFS_MOUNTPOINT}/etc/default/
7777
# TODO: Replace this for a more robust option when in prod
7878
RUN usermod --root "${BOOTC_ROOTFS_MOUNTPOINT}" -p "$(echo "changeme" | mkpasswd -s)" root
7979

80+
# Necessary for `bootc install`
81+
RUN echo -e '[composefs]\nenabled = yes\n[sysroot]\nreadonly = true' | tee "${BOOTC_ROOTFS_MOUNTPOINT}/usr/lib/ostree/prepare-root.conf"
82+
8083
FROM scratch AS runtime
8184

8285
COPY --from=builder /mnt /
8386

84-
COPY files/ostree/prepare-root.conf /usr/lib/ostree/prepare-root.conf
85-
8687
LABEL containers.bootc 1

files/ostree/prepare-root.conf

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)