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.
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:
``` by-partlabel/ loader2 | dtc -I dts -O yaml | grep hifive- unleashed- a00 unleashed- a00"] unleashed- a00"]
$ sudo dtc -I dtb -O dts /dev/disk/
description: ["hifive-
description: ["hifive-
```
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.