-
Notifications
You must be signed in to change notification settings - Fork 86
tmp: Do not remove tmp.mount unit file from the rootfs #301
Conversation
We should start this unit so that systemd can mount /tmp as tmpfs. Fixes kata-containers#300 Signed-off-by: Archana Shinde <[email protected]>
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 #kata-containers/osbuilder#300 Signed-off-by: Archana Shinde <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
Note: This needs to land before kata-containers/agent#564.
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FC CI looks unhappy:
|
@grahamwhaley Just taking a look, did the FC CI just get fixed? |
@amshinde yup |
@grahamwhaley @GabyCT @devimc We do need to have a test for this. Yes this is going to be tricky. |
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 kata-containers#565 Signed-off-by: Archana Shinde <[email protected]>
Seems like this change broke the
|
We should start this unit so that systemd can mount /tmp as
tmpfs.
Fixes #300
Signed-off-by: Archana Shinde [email protected]