This is my lsblk
output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /efi
├─nvme0n1p2 259:2 0 420G 0 part
│ └─cryptroot 254:0 0 420G 0 crypt /
└─nvme0n1p3 259:3 0 45.3G 0 part
I need to retrieve the "part" whose "crypt" is associated to the mountpoint "/", without knowing the "crypt" or the "part" beforehand:
nvme0n1p2 /
Can this be achieved in a single command?