Fix python linter errors
This commit is contained in:
@@ -1,17 +1,29 @@
|
||||
diff --git a/src/main.rs b/src/main.rs
|
||||
index 8baf5924a7db..1234567890ab 100644
|
||||
--- a/src/main.rs
|
||||
+++ b/src/main.rs
|
||||
@@ -1295,6 +1295,12 @@ won't take effect until you reboot the system.
|
||||
From 46ec73cdeac58807a49b738c44d2e8d5dfbc5fc8 Mon Sep 17 00:00:00 2001
|
||||
From: pinpox <git@pablo.tools>
|
||||
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
|
||||
if current_filesystem.fs_type != new_filesystem.fs_type
|
||||
--
|
||||
2.51.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user