Skip to content

Instantly share code, notes, and snippets.

View norpol's full-sized avatar

Phileas Lebada norpol

View GitHub Profile
@norpol
norpol / findmount_luks_block_device.sh
Last active January 31, 2017 11:45
findmount luks block device
#!/bin/sh
# figure which luks device is used for a given mountpoint (e.g. /)
# usage: findmount_luks_block_device.sh /
# See findmount_luks_block_device_LICENCE.MD (MIT)
set -ue
mountpoint="${1}"
lsblk_output="$(lsblk -l -o NAME,KNAME,PKNAME,TYPE,UUID,MOUNTPOINT)"
# each matching line provided above the command
# exit after print in each awk, because mdadm softraid lvm block device will appear multiple times (md-0)
@norpol
norpol / keybase.md
Created June 17, 2014 20:11
keybase.md

Keybase proof

I hereby claim:

  • I am norpol on github.
  • I am pl (https://keybase.io/pl) on keybase.
  • I have a public key whose fingerprint is F549 0D6E 1A67 E1F0 A19E 693C 45D0 E421 5EBE 16D9

To claim this, I am signing this object: