summaryrefslogtreecommitdiff
path: root/samizdat-eject.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-27 09:23:09 -0400
committerAndrew Cady <d@jerkface.net>2016-04-27 09:23:09 -0400
commitbb35cfd21f0683d17d29a5f51b22bab8047127de (patch)
tree035abc9fcb556cd195041587cf208e0ff6ccfcb6 /samizdat-eject.sh
parent5240fe8fb459d895ec8daf7da013298ac9786a59 (diff)
Implement encrypted cdrom ejection
This allows the cdrom to be copied onto the outer filesystem (mounted in /outerfs) without storing unencrypted gpg keys there. e.g.: samizdat-eject.sh /outerfs/samizdat.iso This was necessary because the other method probably causes btrfs deadlocks. We do end up copying data twice this way (or three times, probably -- if the ISO is saved), but not _from the cdrom_. And we get to eject immediately after the first copy. Future copies will be from the hard drive. Not too bad.
Diffstat (limited to 'samizdat-eject.sh')
-rwxr-xr-xsamizdat-eject.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/samizdat-eject.sh b/samizdat-eject.sh
index f5360a7..ac2ebc3 100755
--- a/samizdat-eject.sh
+++ b/samizdat-eject.sh
@@ -27,7 +27,7 @@ done
27 27
28copy() 28copy()
29{ 29{
30 mdadm_copy_eject /dev/md55 "$target" 30 mdadm_copy_eject_crypt /dev/md55 "$target"
31} 31}
32 32
33remove() 33remove()