You are not logged in.

#1 2020-06-08 05:39:36

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

[SOLVED] initrd-switch-root.service: Current command vanished

Since upgrading to systemd-245.6-2 on 2020-06-05, I have a new warning in the boot log:

Jun 08 06:42:18 arch systemd[1]: initrd-switch-root.service: Current command vanished from the unit file, execution of the command list won't be resumed.

The system behaves normally, but I tend to take those warnings seriously. Any ideas how to track down the issue?

The complete boot log: journalctl -b

The unit file, from which nothing seems to have vanished in my opinion:

# systemctl cat initrd-switch-root.service
# /usr/lib/systemd/system/initrd-switch-root.service
#  SPDX-License-Identifier: LGPL-2.1+
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Switch Root
DefaultDependencies=no
ConditionPathExists=/etc/initrd-release
OnFailure=emergency.target
OnFailureJobMode=replace-irreversibly
AllowIsolate=yes

[Service]
Type=oneshot
ExecStart=systemctl --no-block switch-root /sysroot

Its status:

# systemctl status initrd-switch-root.service
● initrd-switch-root.service - Switch Root
     Loaded: loaded (/usr/lib/systemd/system/initrd-switch-root.service; static; vendor preset: disabled)
     Active: inactive (dead) since Mon 2020-06-08 06:42:18 CEST; 48min ago
   Main PID: 432 (code=exited, status=0/SUCCESS)

Jun 08 06:42:18 archlinux systemd[1]: Starting Switch Root...

Last edited by tucuxi (2020-07-11 09:48:38)

Offline

#2 2020-06-12 11:02:57

finoderi
Member
Registered: 2020-06-12
Posts: 76

Re: [SOLVED] initrd-switch-root.service: Current command vanished

Offline

#3 2020-07-11 09:45:42

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] initrd-switch-root.service: Current command vanished

Offline

#4 2020-07-11 13:30:15

finoderi
Member
Registered: 2020-06-12
Posts: 76

Re: [SOLVED] initrd-switch-root.service: Current command vanished

I wouldn't call it a fix. It's not a good idea to edit anything in /usr. May be it's better to use dracut )

Offline

Board footer

Powered by FluxBB