Skip to content

NixOS fails to boot if partition names contain spaces #1053

Open
@Jayman2000

Description

@Jayman2000

Steps to reproduce

  1. Start a Disko interactive VM by running this command:

    QEMU_KERNEL_PARAMS="console=ttyS0" nix --extra-experimental-features 'nix-command flakes' run git+https://codeberg.org/JasonYundt/disko-bug-1053-reproduction-project.git
  2. In the QEMU (nixos) window, switch to the serial terminal by going to View > serial0.

Results

Actual results

The VM gets stuck during Stage 1 of the boot process:

EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
[    0.027486] mce: [Firmware Bug]: Your BIOS is not setting up LVT offset 0x2 for deferred error IRQs correctly.
[    0.028419] [Firmware Bug]: cpu 0, try to use APIC520 (LVT offset 2) for vector 0xf4, but the register is already in use for vector 0x0 on this cpu

<<< NixOS Stage 1 >>>

loading module virtio_balloon...
loading module virtio_console...
loading module virtio_rng...
loading module virtio_gpu...
loading module dm_mod...
running udev...
Starting systemd-udevd version 257.5
kbd_mode: KDSKBMODE: Inappropriate ioctl for device
starting device mapper and LVM...
waiting for device /dev/disk/by-partlabel/disk-vda-Rootx20Partition to appear.......................
Timed out waiting for device /dev/disk/by-partlabel/disk-vda-Rootx20Partition, trying to mount anyway.
mounting /dev/disk/by-partlabel/disk-vda-Rootx20Partition on /...
[   21.603710] /dev/disk/by-partlabel/disk-vda-Rootx20Partition: Can't lookup blockdev
mount: mounting /dev/disk/by-partlabel/disk-vda-Rootx20Partition on /mnt-root/ failed: No such file or directory

An error occurred in stage 1 of the boot process, which must mount the
root filesystem on `/mnt-root' and then start stage 2.  Press one
of the following keys:

  r) to reboot immediately
  *) to ignore the error and continue

Expected results

Either the VM should boot successfully or I should get an error that tells me that I’m not allowed to use spaces in partition names before the VM is started.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions