Skip to content

Exclude install media from disk picker#73

Open
mplaczek99 wants to merge 2 commits intoomacom-io:mainfrom
mplaczek99:fix-hide-install-media-disk
Open

Exclude install media from disk picker#73
mplaczek99 wants to merge 2 commits intoomacom-io:mainfrom
mplaczek99:fix-hide-install-media-disk

Conversation

@mplaczek99
Copy link
Copy Markdown

@mplaczek99 mplaczek99 commented Apr 3, 2026

Summary

Exclude the live install media from the Omarchy ISO disk picker.

Closes basecamp/omarchy#5167

The configurator was trying to hide the boot device by reading the mount source
for /run/archiso/bootmnt, but that source is usually a partition like
/dev/sda1 while the installer presents whole disks like /dev/sda.

That mismatch let the USB installer disk stay in the list, where it could be
selected and wiped by mistake.

What changed

  • add get_root_disk() to walk a device back to its parent disk
  • resolve /run/archiso/bootmnt to the root disk before filtering candidates
  • document why the partition-to-disk normalization is required

Verification

  • bash -n configs/airootfs/root/configurator
  • mocked lsblk checks confirming /dev/sda1 -> /dev/sda
  • mocked disk list check confirming the resolved boot disk is excluded

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

Successfully merging this pull request may close these issues.

Remove USB option from the installation

1 participant