This project aims to implement a clone of lsblk(8) for OpenBSD.
# Clone the repo.
git clone git://stuerz.xyz/openbsd/lsblk
# Build & Install lsblk(8).
make && doas make install
# Optional: Make non-roots be able to run lsblk(8).
doas make unroot- It requires root privileges
Workaround:
make unroot
-
lsblk sd0 -
lsblk sd0a -
lsblk -f duid,size - Don't use manual padding.
- Support disks that have more than 2 letters, like
vnd0 - Sort drives by name
- Add an option to make the output script-friendly (like -c for CSV).
- Maybe: Display the child device of a RAID partition
- Show the DUID
- Explain the exact meaning of every field in lsblk.8
If you find any bugs or have suggestions/patches, please contact me at benni@stuerz.xyz.