diff --git a/recipes-core/swupdate/files/swupdate_handlers.lua b/recipes-core/swupdate/files/swupdate_handlers.lua index c9b9962..f2ecc54 100644 --- a/recipes-core/swupdate/files/swupdate_handlers.lua +++ b/recipes-core/swupdate/files/swupdate_handlers.lua @@ -311,8 +311,12 @@ function handler_roundrobin(image) if rootparam and rootdevice then break end end if not rootdevice then - swupdate.error("Cannot determine current root device.") - return 1 + -- Use findmnt to get the rootdev + rootdevice = io.popen('findmnt -nl / -o PARTUUID'):read("*l") + if not rootdevice then + swupdate.error("Cannot determine current root device.") + return 1 + end end swupdate.info(string.format("Current root device is: %s", rootdevice))
Seems not really specific to secure-boot, rather related to the initramfs-based rootfs selection. But is that one actually using PARTUUID in the end? Or rather device paths?
it uses the partuuid from root. If someone finds a better way to get the current root without parsing the kernel commandline I would use that.
Anyway, I'm not against merging this. It should just be correctly labeled. Or maybe even merged into the swupdate patch from the first series.