Skip to content

repair is broken on encrypted drive (with btrfs root) #182

Open
@ser

Description

@ser

Describe the bug
cryptsetup luksOpen /dev/drive drive
mount /dev/mapper/drive /mnt
swupd repair --picky --root=/mnt

gives

Calling post-update helper scripts
[ERROR] cbm (../src/lib/files.c:L165): Invalid block device: /mnt
[ERROR] cbm (../src/lib/system_stub.c:L31): Invalid block device: 0:58
Out of memory
[FATAL] cbm (../src/bootman/sysconfig.c:L275): sysconfig insane: Missing root device
[FATAL] cbm (../src/bootman/update.c:L127): Cannot install kernel /mnt//usr/lib/kernel/org.clearlinux.native.5.3.2-844

Repair successful

To Reproduce
Install clear linux with encryption, btrfs-convert /dev/drive from installer media, system does not boot, try to fix with the above command

Expected behavior
fixing boot by checking that filesystem ID has changed during btrfs convertion

Environment (please complete the following information):
swupd-client 3.22.3
Installed version: 31140

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions