diff --git a/src/cmd/initContainer.go b/src/cmd/initContainer.go index f83a9f177..a94cc0758 100644 --- a/src/cmd/initContainer.go +++ b/src/cmd/initContainer.go @@ -54,6 +54,7 @@ var ( {"/run/libvirt", "/run/host/run/libvirt", ""}, {"/run/systemd/journal", "/run/host/run/systemd/journal", ""}, {"/run/udev/data", "/run/host/run/udev/data", ""}, + {"/tmp", "/run/host/tmp", "rslave"}, {"/var/lib/flatpak", "/run/host/var/lib/flatpak", "ro"}, {"/var/log/journal", "/run/host/var/log/journal", "ro"}, {"/var/mnt", "/run/host/var/mnt", "rslave"}, @@ -144,16 +145,6 @@ func initContainer(cmd *cobra.Command, args []string) error { defer toolboxEnvFile.Close() - logrus.Debug("Mounting tmpfs at /tmp") - - if err := syscall.Mount("tmpfs", - "/tmp", - "tmpfs", - syscall.MS_NODEV|syscall.MS_STRICTATIME|syscall.MS_NOSUID, - "mode=1777"); err != nil { - return fmt.Errorf("failed to mount tmpfs at /tmp: %s", err) - } - if initContainerFlags.monitorHost { logrus.Debug("Monitoring host")