diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-27 09:23:09 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-27 09:23:09 -0400 |
commit | bb35cfd21f0683d17d29a5f51b22bab8047127de (patch) | |
tree | 035abc9fcb556cd195041587cf208e0ff6ccfcb6 /patchroot.sh | |
parent | 5240fe8fb459d895ec8daf7da013298ac9786a59 (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 'patchroot.sh')
-rwxr-xr-x | patchroot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patchroot.sh b/patchroot.sh index 3efa8ec..4f05de6 100755 --- a/patchroot.sh +++ b/patchroot.sh | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | pkgs='avahi-daemon git tmux btrfs-tools/jessie-backports sshfs eject' | 3 | pkgs='avahi-daemon git tmux btrfs-tools/jessie-backports sshfs eject' |
4 | pkgs="$pkgs $(cat initrd-dependencies.txt)" | 4 | pkgs="$pkgs $(cat initrd-dependencies.txt)" |
5 | pkgs="$pkgs linux-image-$(uname -r)" | 5 | pkgs="$pkgs linux-image-$(uname -r)/jessie-backports" |
6 | 6 | ||
7 | default_sources_list() | 7 | default_sources_list() |
8 | { | 8 | { |