Blob


1 # lsblk for OpenBSD
2 This project aims to implement a clone of lsblk(8) for OpenBSD.
4 ## Install
5 ``` sh
6 # Clone the repo.
7 git clone git://stuerz.xyz/openbsd/lsblk
9 # Build & Install lsblk(8).
10 make && doas make install
12 # Optional: Make non-roots be able to run lsblk(8).
13 doas make unroot
14 ```
16 ## Quirks
17 - It requires root privileges
18 Workaround: `make unroot`
20 ## TODO
21 - [x] `lsblk sd0`
22 - [ ] `lsblk sd0a`
23 - [ ] `lsblk -f duid,size`
24 - [x] Don't use manual padding.
25 - [ ] Support disks that have more than 2 letters, like `vnd0`
26 - [x] Sort drives by name
27 - [ ] Add an option to make the output script-friendly (like -c for CSV).
28 - [x] Maybe: Display the child device of a RAID partition
29 - [x] Show the DUID
30 - [ ] Explain the exact meaning of every field in lsblk.8