Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
tmp: Add tmp.mount to kata-containers.target
Browse files Browse the repository at this point in the history
Invoke tmp.mount by adding it to kata-containers.target.
This is not invoked by systemd with current rootfs setup we have
as one of the dependencies for tmp.mount is systemd-remount-fs.service
which depends on /etc/fstab file being present(it is currenty missing)
Instead of adding that file, start the tmp.mount unit by including
it in kata-containers.target

With this and change in os-builder to not delete the tmp.mount unit,
(kata-containers/osbuilder#301) /tmp should now
be writeable for systemd based images.
For initrd this is handled by the agent itself.

Fixes #565

Signed-off-by: Archana Shinde <[email protected]>
  • Loading branch information
amshinde committed May 31, 2019
1 parent 629f90f commit 06a0743
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kata-containers.target
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[Unit]
Description=Kata Containers Agent Target
Requires=basic.target
Requires=tmp.mount
Wants=chronyd.service
Requires=kata-agent.service
Conflicts=rescue.service rescue.target
Expand Down

0 comments on commit 06a0743

Please sign in to comment.