add /nix mount service

This commit is contained in:
Anders Rytter Hansen 2023-12-16 20:37:26 +01:00
commit 892ac475cc
2 changed files with 23 additions and 0 deletions

View file

@ -48,6 +48,9 @@ COPY etc /etc
# Copy /usr
COPY usr /usr
# Enable /nix mount service
RUN systemctl enable mount-nix-prepare.service
# Clear cache, /var and /tmp and commit ostree
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
ostree container commit