Comment 5 for bug 1936370

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

The attached implementation checks for what one has booted as.

But does not check what was on the partitions before, or if they were used at all or not.

I guess I could do:

```
$ sudo dtc -I dtb -O dts /dev/disk/by-partlabel/loader2 | dtc -I dts -O yaml | grep hifive-unleashed-a00
      description: ["hifive-unleashed-a00"]
      description: ["hifive-unleashed-a00"]
```

But that requires device-tree-compiler to be installed, and should like ideally have either json or yaml parsing to find the right node, rather than just grepping for stuff.