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 /src/initrd | |
parent | 0d762c30ec0bf35522adb193bd770cb0bf5d3032 (diff) |
run an extra grok-block since nbd0 wasn't mountable otherwise
Diffstat (limited to 'src/initrd')
-rw-r--r-- | src/initrd/common.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/initrd/common.sh b/src/initrd/common.sh index 09906d9..b91bbf9 100644 --- a/src/initrd/common.sh +++ b/src/initrd/common.sh | |||
@@ -31,6 +31,11 @@ menutitle() | |||
31 | printf 'setWelcomeText "%s"\n' "$2" >>$MENUFIFO | 31 | printf 'setWelcomeText "%s"\n' "$2" >>$MENUFIFO |
32 | } | 32 | } |
33 | 33 | ||
34 | force_grok_block() | ||
35 | { | ||
36 | udevadm trigger --subsystem-match=block --action=add | ||
37 | } | ||
38 | |||
34 | bootmenu() | 39 | bootmenu() |
35 | { | 40 | { |
36 | local do_trigger="$1" no_panic="$2" | 41 | local do_trigger="$1" no_panic="$2" |
@@ -43,7 +48,7 @@ bootmenu() | |||
43 | panic "error loading boot menu! the system won't be usable :(" | 48 | panic "error loading boot menu! the system won't be usable :(" |
44 | fi | 49 | fi |
45 | if [ "$do_trigger" ]; then | 50 | if [ "$do_trigger" ]; then |
46 | udevadm trigger --subsystem-match=block --action=add | 51 | force_grok_block |
47 | fi | 52 | fi |
48 | } | 53 | } |
49 | 54 | ||