From 46ec73cdeac58807a49b738c44d2e8d5dfbc5fc8 Mon Sep 17 00:00:00 2001 From: pinpox Date: Mon, 20 Oct 2025 16:30:22 +0200 Subject: [PATCH] patch switch-to-configuration-ng for container tests --- pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs b/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs index f4d339ccf60e..c50863e15e32 100644 --- a/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs +++ b/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs @@ -1320,6 +1320,12 @@ won't take effect until you reboot the system. for (mountpoint, current_filesystem) in current_filesystems { // Use current version of systemctl binary before daemon is reexeced. + + // Skip filesystem comparison if x-initrd.mount is present in options + if current_filesystem.options.contains("x-initrd.mount") { + continue; + } + let unit = path_to_unit_name(¤t_system_bin, &mountpoint); if let Some(new_filesystem) = new_filesystems.get(&mountpoint) { if current_filesystem.fs_type != new_filesystem.fs_type -- 2.51.0