Skip to content

Omarchy 4.0.1 install intermittently fails with Device root is still in use #130

Description

@markoa

Omarchy ISO: 4.0.1
Hardware: ASUS Zenbook 14
Install type: fresh install to entire blank NVMe SSD, encrypted root

On the first installation attempt, the "Installing Arch + Omarchy" phase failed with:

archinstall.lib.exceptions.SysCallError:
['/usr/bin/cryptsetup', 'close', 'root'] exited with abnormal exit code [5]:
device-mapper: remove ioctl on root failed: Device or resource busy

Device root is still in use.

After the installer stopped, I checked the live environment:

lsblk:
nvme0n1p2 crypto_LUKS
└─root crypt btrfs

findmnt showed no mount for the root mapper.
fuser -vm /dev/mapper/root showed no process using it.
dmsetup info root showed:

State: ACTIVE
Open count: 0

Running:

cryptsetup close root

then succeeded immediately and /dev/mapper/root disappeared.

I rebooted the ISO and repeated the same installation. The second installation completed successfully without any changes to hardware/BIOS/install options.

This looks potentially like a timing/race condition where Archinstall attempts to close the LUKS mapping while something briefly still has a reference to it.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions