switch-to-configuration-ng: remove unnecessary loop
The loop removed in this change was originally meant as a synchronization point for stc-ng to prevent executing a switch early in the boot process, however the perl script never needed to make this check and the switch test passes without this loop present.
This commit is contained in:
parent
3d85bae243
commit
64ec9ae3dc
@ -1082,22 +1082,6 @@ won't take effect until you reboot the system.
|
||||
.subscribe()
|
||||
.context("Failed to subscribe to systemd dbus messages")?;
|
||||
|
||||
// Wait for the system to have finished booting.
|
||||
loop {
|
||||
let system_state: String = systemd
|
||||
.get("org.freedesktop.systemd1.Manager", "SystemState")
|
||||
.context("Failed to get system state")?;
|
||||
|
||||
match system_state.as_str() {
|
||||
"running" | "degraded" | "maintenance" => break,
|
||||
_ => {
|
||||
_ = dbus_conn
|
||||
.process(Duration::from_millis(500))
|
||||
.context("Failed to process dbus messages")?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let _systemd_reload_status = systemd_reload_status.clone();
|
||||
let reloading_token = systemd
|
||||
.match_signal(
|
||||
|
Loading…
Reference in New Issue
Block a user