Skip to content

[Bug]: armbian-install fails on systems with multiple disks (e.g., eMMC and NVMe) and empty partition table #8738

@nbnbnd

Description

@nbnbnd

What happened?

  1. I have a NanoPC-T6 with a on-board emmc as /dev/mmcblk0 and a nvme disk as /dev/nvme0n1, with empty partition table (no partitions) on both devices
  2. Boot with SD card, run sudo armbian-install
  3. Select any install method, e.g. 4 Boot from MTD Flash - system on SATA, USB or NVMe
  4. Proceed with the installation

The script is expected to present a selection menu or ask for a manual input, however, it proceeds cancatenating both device names, creating an invalid device variable ($diskcheck becomes "mmcblk0 nvme0n1").
This causes the disk space check to fail, and reports: There is not enough free capacity on /dev/mmcblk0 nvme0n1.

The problem seems to be caused by diskcheck function, which simply combines all detected disk names into a single variable

diskcheck=$(lsblk -Al | awk -F" " '/ disk / {print $1}' | grep -E '^sd|^nvme|^mmc' | grep -v "$root_partition_device_name" | grep -v boot)

Image

How to reproduce?

  1. I have a NanoPC-T6 with a on-board emmc as /dev/mmcblk0 and a nvme disk as /dev/nvme0n1, with empty partition table (no partitions) on both devices. Other device with a emmc and a hard drive / usb drive is expected to reproduce same problem.
  2. Boot with SD card, run sudo armbian-install
  3. Select any option of 1-4, e.g. 4 Boot from MTD Flash - system on SATA, USB or NVMe
  4. Proceed with the installation, and error occurs: There is not enough free capacity on /dev/mmcblk0 nvme0n1

On which OS are you observing this problem? (for easier diagnosis please provide logs with armbianmonitor -u)

Armbian Ubuntu 24.04 Noble

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working as it shouldGood first issueFeel free to contribute :)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions