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

iso image with systemd stage1 fails to boot due to nonexistent /dev/root #327187

Open
anna328p opened this issue Jul 14, 2024 · 4 comments
Open
Labels
0.kind: bug Something is broken

Comments

@anna328p
Copy link
Member

anna328p commented Jul 14, 2024

Describe the bug

An iso image built with systemd stage1 (initrd.systemd.enable = true) fails to boot due to nonexistent /dev/root.

/etc/fstab:

overlay /nix/store overlay x-initrd.mount,lowerdir=/nix/.ro-store,upperdir=/nix/.rw-store/store,workdir=/nix/.rw-store/work 0 0
bash-5.2# systemctl status sysroot-iso.mount |cat
× sysroot-iso.mount - /sysroot/iso
     Loaded: loaded (/nix/store/4kazmgs52j4zp0kr3h5y9vdpmv6kc00d-initrd-fstab; generated)
     Active: failed (Result: exit-code) since Sun 2024-07-14 19:16:40 UTC; 1min 7s ago
      Where: /sysroot/iso
       What: /dev/root
       Docs: man:fstab(5)
             man:systemd-fstab-generator(8)
        CPU: 1ms

Jul 14 19:16:40 localhost systemd[1]: Mounting /sysroot/iso...
Jul 14 19:16:40 localhost systemd[1]: sysroot-iso.mount: Mount process exited, code=exited, status=1/FAILURE
Jul 14 19:16:40 localhost mount[172]: mount: /sysroot/iso: no valid filesystem type specified.
Jul 14 19:16:40 localhost systemd[1]: sysroot-iso.mount: Failed with result 'exit-code'.
Jul 14 19:16:40 localhost systemd[1]: Failed to mount /sysroot/iso.

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

  • system: "x86_64-linux"
  • host os: Linux 6.7.10, NixOS, 24.05 (Uakari), 24.05.20240317.f471be9
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.23.1
  • nixpkgs: /nix/store/xb5p9kg3gy00q7c8s638jf15j6qqj473-source

Add a 👍 reaction to issues you find important.

@anna328p anna328p added the 0.kind: bug Something is broken label Jul 14, 2024
@anna328p anna328p changed the title iso image with systemd stage1 fails to boot due to nonexistent '/dev/root` iso image with systemd stage1 fails to boot due to nonexistent /dev/root Jul 14, 2024
@nvmd
Copy link
Member

nvmd commented Jul 21, 2024

Experiencing the same issue but via nix-community/nixos-images#258.

full contents of fstab:

tmpfs / tmpfs x-initrd.mount,mount=0755 0 0
/dev/root /iso auto x-initrd.mount 0 0
/iso/nix-store.squashfs /nix/.ro-store squashfs x-initrd.mount,loop 0 0
tmpfs /nix/.rw-store tmpfs x-initrd.mount,mode=0755 0 0
overlay /nix/store overlay x-initrd.mount,lowerdir=/nix/.ro-store,upperdir=/nix/.rw-store/store,workdir=/nix/.rw-store/work 0 0

@anna328p
Copy link
Member Author

I have no idea why I'd only ended up posting the last line, I swear I copied the whole thing lol

@ElvishJerricco
Copy link
Contributor

#291750, which is blocked by #309190

@nvmd
Copy link
Member

nvmd commented Aug 7, 2024

Also, almost a duplicate of this issue, with some background information on root= kernel command line option handling #217173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants