diff options
Diffstat (limited to 'src/initrd/btrfs-create.sh')
-rw-r--r-- | src/initrd/btrfs-create.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/initrd/btrfs-create.sh b/src/initrd/btrfs-create.sh index fa8bbfb..8688560 100644 --- a/src/initrd/btrfs-create.sh +++ b/src/initrd/btrfs-create.sh | |||
@@ -267,13 +267,14 @@ init_gpg() | |||
267 | export GNUPGHOME=/gpg/gnupghome | 267 | export GNUPGHOME=/gpg/gnupghome |
268 | mkdir -p "$GNUPGHOME" | 268 | mkdir -p "$GNUPGHOME" |
269 | if [ -e /gnupghome.tar ]; then | 269 | if [ -e /gnupghome.tar ]; then |
270 | tar -C "$GNUPGHOME" -zxf /gnupghome.tar | 270 | tar -C "$GNUPGHOME" -zxf /gnupghome.tar && bootdone samizdat-gpg |
271 | return | 271 | return |
272 | else | ||
273 | bootwait samizdat-cdrom | ||
274 | (umask 077; rsync --exclude '/luks-key*' --ignore-existing -rpP /cdrom/gnupghome/ "$GNUPGHOME") | ||
275 | bootdone samizdat-gpg | ||
272 | fi | 276 | fi |
273 | 277 | ||
274 | bootwait samizdat-cdrom | ||
275 | (umask 077; rsync --exclude '/luks-key*' --ignore-existing -rpP /cdrom/gnupghome/ "$GNUPGHOME") | ||
276 | |||
277 | if samizdat-password-agent >/var/log/samizdat-password-agent.log 2>&1; then | 278 | if samizdat-password-agent >/var/log/samizdat-password-agent.log 2>&1; then |
278 | clear | 279 | clear |
279 | true | 280 | true |