Skip to content

os: booted from the stick with an installed NVMe present, init mounts the NVMe's data partition and runs as the installed system #711

Closed

Description

@bong-water-water-bong

Seen 2026-10-31 after the first install: the firmware fell back to the USB stick (#709), and this live boot logged stick mounted at /dev/nvme0n1p2 - init took the internal disk's data partition (same label) as /data, found /data/.installed, and ran the stick's kernel on the installed system's data. The owner could not tell which system was running ("live usb is loaded up" while the banner facts came from the NVMe).

Fix: when the kernel booted from the stick's ESP (compare the ESP the firmware loaded from, or a boot-id file written into both the ESP and its matching data partition at image build / install time), init mounts the stick's own data partition, never another device's; and the banner states plainly LIVE from USB or INSTALLED on nvme0n1, with the device name, in both the chooser and the appliance screen. Label collisions between the stick and an installed disk must not decide where /data comes from.

Activity

  1. added
    enhancement
    os
    on Oct 31, 2026
  2. bong-water-water-bong commented on Nov 1, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Closed: the os/v2 set landed on main as PR #742 → merge commit 1b3def231 (six files under os/mini/, +598 −63; the smaller PRs #719/#720/#722/#723/#724/#726/#727 were closed as superseded by it, because #721/#725/#727 had merged into their base branches rather than main).

    The data partition is now chosen by the UUID recorded at image build / install instead of by label, and the banner states LIVE from USB or INSTALLED on nvme0n1 — which is exactly the wrong-system boot the dry run produced (findfs LABEL=1BIT-DATA had adopted the NVMe's partition). QEMU-verified in the PR thread; a stick boot with the installed NVMe present is the hardware confirmation.

    If any of the above is not what you see on the next image, reopen with the boot log and it goes straight back on the board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions