We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/tmp
1 parent d832d4e commit e2dc1caCopy full SHA for e2dc1ca
lib/src/install.rs
@@ -642,10 +642,12 @@ pub(crate) async fn install(opts: InstallOpts) -> Result<()> {
642
643
// Let's ensure we have a tmpfs on /tmp, because we need that to write the SELinux label
644
// (it won't work on the default overlayfs)
645
- Task::new("Creating tmpfs on /tmp", "mount")
646
- .quiet()
647
- .args(["-t", "tmpfs", "tmpfs", "/tmp"])
648
- .run()?;
+ if nix::sys::statfs::statfs("/tmp")?.filesystem_type() != nix::sys::statfs::TMPFS_MAGIC {
+ Task::new("Creating tmpfs on /tmp", "mount")
+ .quiet()
+ .args(["-t", "tmpfs", "tmpfs", "/tmp"])
649
+ .run()?;
650
+ }
651
652
// Now, deal with SELinux state.
653
let srcdata = gather_source_data()?;
0 commit comments