diff options
author | Andrew Cady <d@jerkface.net> | 2016-05-01 04:17:24 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-05-01 04:17:24 -0400 |
commit | 0d762c30ec0bf35522adb193bd770cb0bf5d3032 (patch) | |
tree | e1dacafeec323e82848d67ee18f525d897848fd2 /initramfs-tools | |
parent | ed8aa1d9afea87924b84c639511e65e77a050b48 (diff) |
avoid waiting for cdrom in more places
Diffstat (limited to 'initramfs-tools')
-rw-r--r-- | initramfs-tools/scripts/samizdat | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat index ea31c9f..1591883 100644 --- a/initramfs-tools/scripts/samizdat +++ b/initramfs-tools/scripts/samizdat | |||
@@ -6,8 +6,12 @@ mountroot() | |||
6 | 6 | ||
7 | samizdat_install_udev_rules | 7 | samizdat_install_udev_rules |
8 | mkfifo "$MENUFIFO" | 8 | mkfifo "$MENUFIFO" |
9 | sh /scripts/local-top/nbd & # I guess this isn't getting called otherwise? | 9 | sh /scripts/local-top/nbd >/dev/null 2>&1 & # I guess this isn't getting called otherwise? |
10 | wait_for_gnupghome_tar | 10 | |
11 | if [ "${nbdroot%%,*}" ]; then | ||
12 | wait_for_gnupghome_tar | ||
13 | fi | ||
14 | |||
11 | bootmenu | 15 | bootmenu |
12 | bootwait root-mounted | 16 | bootwait root-mounted |
13 | chvt 1 | 17 | chvt 1 |
@@ -16,7 +20,6 @@ mountroot() | |||
16 | wait_for_gnupghome_tar() | 20 | wait_for_gnupghome_tar() |
17 | { | 21 | { |
18 | [ -e /gnupghome.tar ] && return | 22 | [ -e /gnupghome.tar ] && return |
19 | [ "${nbdroot%%,*}" ] || return | ||
20 | echo -n Waiting to receive GPG keys through the network... | 23 | echo -n Waiting to receive GPG keys through the network... |
21 | (while ! tftp -g -r gnupghome.tar -l /gnupghome.tar.$$ ${nbdroot%%,*} 2>/dev/null; do | 24 | (while ! tftp -g -r gnupghome.tar -l /gnupghome.tar.$$ ${nbdroot%%,*} 2>/dev/null; do |
22 | sleep 1; | 25 | sleep 1; |
@@ -24,6 +27,7 @@ wait_for_gnupghome_tar() | |||
24 | done | 27 | done |
25 | mv /gnupghome.tar.$$ /gnupghome.tar) | 28 | mv /gnupghome.tar.$$ /gnupghome.tar) |
26 | echo ' done.' | 29 | echo ' done.' |
30 | (. common.sh && . btrfs-create.sh && init_gpg) | ||
27 | } | 31 | } |
28 | 32 | ||
29 | samizdat_install_udev_rules() | 33 | samizdat_install_udev_rules() |