summaryrefslogtreecommitdiff
path: root/src/initrd/btrfs-create.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-05-01 03:54:59 -0400
committerAndrew Cady <d@jerkface.net>2016-05-01 03:54:59 -0400
commited8aa1d9afea87924b84c639511e65e77a050b48 (patch)
tree8a68410647b01e68dbfeae8f4718f53be3b9bb78 /src/initrd/btrfs-create.sh
parent2b2ccb74093416c0ffac4d18c350d29a81d91fd8 (diff)
don't wait for the cdrom when all we need is the gpg homedir
Diffstat (limited to 'src/initrd/btrfs-create.sh')
-rw-r--r--src/initrd/btrfs-create.sh9
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