blob: 4219df72b1273918f7e7e33b9f0f742ffc47209e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
set -e
host=${HOST:-$HOSTNAME}
test -n "$host"
dev=$1
dev_basename=${dev##*/}
test -n "$dev_basename"
cryptsetup --header-backup-file=$HOME/$host-${dev_basename}-luks-header.bak luksHeaderBackup $dev
|