BTRFS and kernel Update

Whilst doing the latest swupd I noticed an error with installing the kernel

I ran
clr-boot-manager update and got the following error

how do I manually update the kernel seeing that SWUPD cant do this with a BTRFS filesystem

Thanks

[ERROR] cbm (…/src/lib/system_stub.c:L31): Invalid block device: 0:24
Out of memory
[FATAL] cbm (…/src/bootman/sysconfig.c:L275): sysconfig insane: Missing root device
[FATAL] cbm (…/src/bootman/update.c:L396): Failed to update bootloader
[FATAL] cbm (…/src/bootman/sysconfig.c:L275): sysconfig insane: Missing root device
[ERROR] cbm (…/src/bootman/update.c:L218): Failed to repair running kernel
[FATAL] cbm (…/src/bootman/sysconfig.c:L275): sysconfig insane: Missing root device
[FATAL] cbm (…/src/bootman/update.c:L250): Failed to install default-native kernel: ///usr/lib/kernel/org.clearlinux.native.5.3.10-867

This is a bug. @dorileo

I would just stick to your old kernel until this gets fixed. However, editing the files in /boot is relatively simple - copy the new kernel image and create a new loader entry. man systemd-boot has more info.

I’m assuming you’re running Clear Linux with a BTRFS root filesystem but could you better describe your system configuration so I can be sure?

Additionally could you run clr-boot-manager with debug msgs? i.e: $ CBM_DEBUG=1 clr-boot-manager update

Yes @ahkok is right, the root filesystem is BTRFS

I will pull off the debug when I get home

That you

CBM_DEBUG=1 clr-boot-manager update
[INFO] cbm (…/src/bootman/bootman.c:L706): Current running kernel: 5.2.13-832.native
[INFO] cbm (…/src/bootman/sysconfig.c:L179): Discovered UEFI ESP: /dev/disk/by-partuuid/588e3444-243c-4037-93ca-503a95b88893
[INFO] cbm (…/src/bootman/sysconfig.c:L254): Fully resolved boot device: /dev/sda1
[ERROR] cbm (…/src/lib/system_stub.c:L31): Invalid block device: 0:24
Out of memory
[DEBUG] cbm (…/src/bootman/bootman.c:L120): shim-systemd caps: 0x26, wanted: 0x26
[DEBUG] cbm (…/src/bootman/bootman.c:L135): UEFI boot now selected (shim-systemd)
[INFO] cbm (…/src/bootman/bootman.c:L431): Checking for mounted boot dir
[INFO] cbm (…/src/bootman/bootman.c:L484): Mounting boot device /dev/sda1 at /boot
[SUCCESS] cbm (…/src/bootman/bootman.c:L497): /dev/sda1 successfully mounted at /boot
[DEBUG] cbm (…/src/bootman/update.c:L164): Now beginning update_native
[DEBUG] cbm (…/src/bootman/update.c:L173): update_native: 17 available kernels
[DEBUG] cbm (…/src/bootman/update.c:L191): update_native: Running kernel is (native) ///usr/lib/kernel/org.clearlinux.native.5.2.13-832
[FATAL] cbm (…/src/bootman/sysconfig.c:L275): sysconfig insane: Missing root device
[DEBUG] cbm (…/src/bootman/bootman.c:L630): The sysconfig values are not sane
[FATAL] cbm (…/src/bootman/update.c:L396): Failed to update bootloader
[FATAL] cbm (…/src/bootman/sysconfig.c:L275): sysconfig insane: Missing root device
[ERROR] cbm (…/src/bootman/update.c:L218): Failed to repair running kernel
[DEBUG] cbm (…/src/bootman/update.c:L230): update_native: Checking kernels for type native
[INFO] cbm (…/src/bootman/update.c:L243): update_native: Default kernel for type native is ///usr/lib/kernel/org.clearlinux.native.5.3.11-868
[FATAL] cbm (…/src/bootman/sysconfig.c:L275): sysconfig insane: Missing root device
[FATAL] cbm (…/src/bootman/update.c:L250): Failed to install default-native kernel: ///usr/lib/kernel/org.clearlinux.native.5.3.11-868
[INFO] cbm (…/src/bootman/bootman.c:L397): Attempting umount of /boot
[SUCCESS] cbm (…/src/bootman/bootman.c:L401): Unmounted boot directory
root@Xxxx

Can you run lsblk as show bellow and send the output?

$ lsblk -O -a --json

Thanks…

lsblk -O -a --json

{
“blockdevices”: [
{“name”:“loop0”, “kname”:“loop0”, “path”:"/dev/loop0", “maj:min”:“7:0”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop1”, “kname”:“loop1”, “path”:"/dev/loop1", “maj:min”:“7:1”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop2”, “kname”:“loop2”, “path”:"/dev/loop2", “maj:min”:“7:2”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop3”, “kname”:“loop3”, “path”:"/dev/loop3", “maj:min”:“7:3”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop4”, “kname”:“loop4”, “path”:"/dev/loop4", “maj:min”:“7:4”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop5”, “kname”:“loop5”, “path”:"/dev/loop5", “maj:min”:“7:5”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop6”, “kname”:“loop6”, “path”:"/dev/loop6", “maj:min”:“7:6”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop7”, “kname”:“loop7”, “path”:"/dev/loop7", “maj:min”:“7:7”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“sda”, “kname”:“sda”, “path”:"/dev/sda", “maj:min”:“8:0”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:“62e1c488-a33f-4357-be47-9e3ffbce7d57”, “pttype”:“gpt”, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:false, “model”:“Samsung_SSD_840_PRO_Series”, “serial”:“S1AXNEAD605201N”, “size”:“477G”, “state”:“running”, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:false, “sched”:“bfq”, “rq-size”:1024, “type”:“disk”, “disc-aln”:0, “disc-gran”:“512B”, “disc-max”:“2G”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x5002538550389ba1”, “rand”:false, “pkname”:null, “hctl”:“0:0:0:0”, “tran”:“sata”, “subsystems”:“block:scsi:pci”, “rev”:“5B0Q”, “vendor”:“ATA “, “zoned”:“none”,
“children”: [
{“name”:“sda1”, “kname”:“sda1”, “path”:”/dev/sda1”, “maj:min”:“8:1”, “fsavail”:null, “fssize”:null, “fstype”:“vfat”, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:“boot”, “uuid”:“93A7-CBFF”, “ptuuid”:“62e1c488-a33f-4357-be47-9e3ffbce7d57”, “pttype”:“gpt”, “parttype”:“c12a7328-f81f-11d2-ba4b-00a0c93ec93b”, “partlabel”:“EFI”, “partuuid”:“588e3444-243c-4037-93ca-503a95b88893”, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:“142M”, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:false, “sched”:“bfq”, “rq-size”:1024, “type”:“part”, “disc-aln”:0, “disc-gran”:“512B”, “disc-max”:“2G”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x5002538550389ba1”, “rand”:false, “pkname”:“sda”, “hctl”:null, “tran”:null, “subsystems”:“block:scsi:pci”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“sda2”, “kname”:“sda2”, “path”:"/dev/sda2", “maj:min”:“8:2”, “fsavail”:null, “fssize”:null, “fstype”:“swap”, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:“swap”, “uuid”:“3b440a62-185f-449b-b025-43f0d4244a86”, “ptuuid”:“62e1c488-a33f-4357-be47-9e3ffbce7d57”, “pttype”:“gpt”, “parttype”:“0657fd6d-a4ab-43c4-84e5-0933c84b4f4f”, “partlabel”:“linux-swap”, “partuuid”:“2c2efe80-acaf-49a7-9128-235e7eaa8ce7”, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:“244M”, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:false, “sched”:“bfq”, “rq-size”:1024, “type”:“part”, “disc-aln”:0, “disc-gran”:“512B”, “disc-max”:“2G”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x5002538550389ba1”, “rand”:false, “pkname”:“sda”, “hctl”:null, “tran”:null, “subsystems”:“block:scsi:pci”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“sda3”, “kname”:“sda3”, “path”:"/dev/sda3", “maj:min”:“8:3”, “fsavail”:“270.7G”, “fssize”:“476.6G”, “fstype”:“btrfs”, “fsused”:“203.7G”, “fsuse%”:“43%”, “mountpoint”:"/", “label”:“root”, “uuid”:“8e4a5826-9464-49ca-854c-408adaf1bd54”, “ptuuid”:“62e1c488-a33f-4357-be47-9e3ffbce7d57”, “pttype”:“gpt”, “parttype”:“4f68bce3-e8cd-4db1-96e7-fbcaf984b709”, “partlabel”:"/", “partuuid”:“d02f1851-cca7-4cce-b85e-911f84192794”, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:“476.6G”, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:false, “sched”:“bfq”, “rq-size”:1024, “type”:“part”, “disc-aln”:0, “disc-gran”:“512B”, “disc-max”:“2G”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x5002538550389ba1”, “rand”:false, “pkname”:“sda”, “hctl”:null, “tran”:null, “subsystems”:“block:scsi:pci”, “rev”:null, “vendor”:null, “zoned”:“none”}
]
},
{“name”:“sdb”, “kname”:“sdb”, “path”:"/dev/sdb", “maj:min”:“8:16”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:“15cee05a-d8ab-4c0a-8625-d797a0239414”, “pttype”:“gpt”, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:true, “model”:“WDC_WD5000BEVT-22A0RT0”, “serial”:“WD-WXA0AB9T1528”, “size”:“465.8G”, “state”:“running”, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“bfq”, “rq-size”:1024, “type”:“disk”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x50014ee001d6bd85”, “rand”:true, “pkname”:null, “hctl”:“2:0:0:0”, “tran”:“usb”, “subsystems”:“block:scsi:usb:pci”, “rev”:“1.75”, “vendor”:“WD “, “zoned”:“none”,
“children”: [
{“name”:“sdb1”, “kname”:“sdb1”, “path”:”/dev/sdb1”, “maj:min”:“8:17”, “fsavail”:“101.6G”, “fssize”:“465.8G”, “fstype”:“btrfs”, “fsused”:“363.4G”, “fsuse%”:“78%”, “mountpoint”:"/media/Ext-Drive", “label”:“Ext-Drive”, “uuid”:“c48ed702-3b9a-40dd-8709-0419b249102d”, “ptuuid”:“15cee05a-d8ab-4c0a-8625-d797a0239414”, “pttype”:“gpt”, “parttype”:“0fc63daf-8483-4772-8e79-3d69d8477de4”, “partlabel”:null, “partuuid”:“8796e8ed-e036-4b6e-8ad5-d207cd11571b”, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:true, “model”:null, “serial”:null, “size”:“465.8G”, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“bfq”, “rq-size”:1024, “type”:“part”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x50014ee001d6bd85”, “rand”:true, “pkname”:“sdb”, “hctl”:null, “tran”:null, “subsystems”:“block:scsi:usb:pci”, “rev”:null, “vendor”:null, “zoned”:“none”}
]
},
{“name”:“sr0”, “kname”:“sr0”, “path”:"/dev/sr0", “maj:min”:“11:0”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:true, “hotplug”:true, “model”:“TSSTcorp_DVD+_-RW_SU-208GB”, “serial”:“S1B36YDH200172”, “size”:“1024M”, “state”:“running”, “owner”:“root”, “group”:“cdrom”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:64, “type”:“rom”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:“1:0:0:0”, “tran”:“sata”, “subsystems”:“block:scsi:pci”, “rev”:“H100”, “vendor”:“TSSTcorp”, “zoned”:“none”}
]
}

Hi @Ian_Whitbread I managed to reproduce your issue and isolated it. I opened a github issue to track the fix. I’ll work on that whenever I have a chance. Could we please let’s move our future discussions there?

Thanks…

1 Like

Thanks see you there

Take care