diff options
author | Andrew Cady <d@jerkface.net> | 2016-05-01 04:41:33 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-05-01 04:41:33 -0400 |
commit | 61c0618cf504bbd4648b3c08b56d7c68e3d8f7bd (patch) | |
tree | cf924932626dee731d87cac3d13b92f39063e90a /initramfs-tools | |
parent | 0d762c30ec0bf35522adb193bd770cb0bf5d3032 (diff) |
run an extra grok-block since nbd0 wasn't mountable otherwise
Diffstat (limited to 'initramfs-tools')
-rw-r--r-- | initramfs-tools/modules | 2 | ||||
-rw-r--r-- | initramfs-tools/scripts/samizdat | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/initramfs-tools/modules b/initramfs-tools/modules index dd9dc54..ee049de 100644 --- a/initramfs-tools/modules +++ b/initramfs-tools/modules | |||
@@ -9,3 +9,5 @@ | |||
9 | # | 9 | # |
10 | # raid1 | 10 | # raid1 |
11 | # sd_mod | 11 | # sd_mod |
12 | |||
13 | btrfs | ||
diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat index 1591883..0c511e8 100644 --- a/initramfs-tools/scripts/samizdat +++ b/initramfs-tools/scripts/samizdat | |||
@@ -6,10 +6,10 @@ 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 >/dev/null 2>&1 & # I guess this isn't getting called otherwise? | ||
10 | 9 | ||
10 | # Note: this blocks waiting for the network | ||
11 | if [ "${nbdroot%%,*}" ]; then | 11 | if [ "${nbdroot%%,*}" ]; then |
12 | wait_for_gnupghome_tar | 12 | try_nbd |
13 | fi | 13 | fi |
14 | 14 | ||
15 | bootmenu | 15 | bootmenu |
@@ -17,6 +17,13 @@ mountroot() | |||
17 | chvt 1 | 17 | chvt 1 |
18 | } | 18 | } |
19 | 19 | ||
20 | try_nbd() | ||
21 | { | ||
22 | sh /scripts/local-top/nbd >/dev/null 2>&1 & # I guess this isn't getting called otherwise? | ||
23 | wait_for_gnupghome_tar | ||
24 | (. common.sh && force_grok_block) | ||
25 | } | ||
26 | |||
20 | wait_for_gnupghome_tar() | 27 | wait_for_gnupghome_tar() |
21 | { | 28 | { |
22 | [ -e /gnupghome.tar ] && return | 29 | [ -e /gnupghome.tar ] && return |