From ffc06525fbdf7556d5821f5f7270bff05686c0e9 Mon Sep 17 00:00:00 2001 From: tiann Date: Fri, 24 Feb 2023 20:00:57 +0800 Subject: [PATCH] ksud: don't touch rootfs mount --- userspace/ksud/src/mount.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/ksud/src/mount.rs b/userspace/ksud/src/mount.rs index 1b78edc3..2ef13bf2 100644 --- a/userspace/ksud/src/mount.rs +++ b/userspace/ksud/src/mount.rs @@ -278,7 +278,7 @@ impl StockMount { let mounts = self .mountlist .destination_starts_with(std::path::Path::new(&self.mnt)) - .filter(|m| m.fstype != "overlay"); + .filter(|m| m.fstype != "overlay" && m.fstype != "rootfs"); mounts.collect() }