Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start Switch Root #10

Closed
Andrei-Pozolotin opened this issue Feb 27, 2018 · 1 comment
Closed

Failed to start Switch Root #10

Andrei-Pozolotin opened this issue Feb 27, 2018 · 1 comment

Comments

@Andrei-Pozolotin
Copy link
Collaborator

Andrei-Pozolotin commented Feb 27, 2018

  1. systemd 237 changed mount behavior
  • now it will unmount the sysroot.mount before initrd-switch-root.target
  1. this produces boot error in journalctl -e:
Feb 27 10:22:32 work3 systemd[1]: Starting Switch Root...
Feb 27 10:22:32 work3 systemctl[974]: Failed to switch root: Specified switch root path '/sysroot' does not seem to be an OS tree. os-release file is missing.
Feb 27 10:22:32 work3 systemd[1]: initrd-switch-root.service: Main process exited, code=exited, status=1/FAILURE
Feb 27 10:22:32 work3 systemd[1]: initrd-switch-root.service: Failed with result 'exit-code'.
Feb 27 10:22:32 work3 systemd[1]: Failed to start Switch Root.
  1. the immediate work around is:
  • provide secret> as usual
  • observe boot error message
  • switch to debug console: CTRL+ALT+F8
  • provide manual mount via: mount /dev/mapper/root /sysroot
  • continue boot process via: systemctl start initrd-switch-root.service
@MartinX3
Copy link

MartinX3 commented Oct 19, 2022

I fixed this issue on my btrfs root with a subvolume rootfs by using btrfs subvolume set-default /.
Somehow the initframfs fstab ignores the subvol=rootfs or subvolid=264 mount option.
Maybe a newer systemD update broke it?

Maybe because I switched from bios boot to uefi boot with efi- and xbootldr partition.
But that doesn't make any sense for me.

Edit: there was an option left in the kernel CMDline overwriting everything I put into the fstab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants