index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Christian Hesse <mail@eworm.de> | 2016-05-25 21:35:12 +0200 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@gmail.com> | 2016-05-25 16:42:46 -0300 |
commit | 094f5b9da34d8e7977b3d7143c2131c507a58411 (patch) | |
tree | 2171fa02ce89ac5b32920f6c67970b55502a60d7 /hooks/archiso_pxe_nbd | |
parent | a56767ca5957acae8108475ccea231c2bc9dce01 (diff) |
-rw-r--r-- | hooks/archiso_pxe_nbd | 10 |
diff --git a/hooks/archiso_pxe_nbd b/hooks/archiso_pxe_nbd index fdb2c2b..532a7e1 100644 --- a/hooks/archiso_pxe_nbd +++ b/hooks/archiso_pxe_nbd @@ -1,5 +1,12 @@ # vim: set ft=sh: +run_earlyhook() { + if [[ -n "${ip}" && -n "${archiso_nbd_srv}" ]]; then + # Module autoloading like with loop devices does not work, doing manually... + modprobe nbd 2> /dev/null + fi +} + run_hook() { if [[ -n "${ip}" && -n "${archiso_nbd_srv}" ]]; then @@ -13,9 +20,6 @@ run_hook() { archiso_pxe_nbd_mount_handler () { newroot="${1}" - # Module autoloading like with loop devices does not work, doing manually... - modprobe nbd 2> /dev/null - msg ":: Waiting for boot device..." while ! poll_device /dev/nbd0 30; do echo "ERROR: boot device didn't show up after 30 seconds..." |