move modprobe to run_earlyhook()
Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
51b7ed7f18
commit
63c62911ac
@ -1,5 +1,12 @@
|
|||||||
# vim: set ft=sh:
|
# 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() {
|
run_hook() {
|
||||||
if [[ -n "${ip}" && -n "${archiso_nbd_srv}" ]]; then
|
if [[ -n "${ip}" && -n "${archiso_nbd_srv}" ]]; then
|
||||||
|
|
||||||
@ -13,9 +20,6 @@ run_hook() {
|
|||||||
archiso_pxe_nbd_mount_handler () {
|
archiso_pxe_nbd_mount_handler () {
|
||||||
newroot="${1}"
|
newroot="${1}"
|
||||||
|
|
||||||
# Module autoloading like with loop devices does not work, doing manually...
|
|
||||||
modprobe nbd 2> /dev/null
|
|
||||||
|
|
||||||
msg ":: Waiting for boot device..."
|
msg ":: Waiting for boot device..."
|
||||||
while ! poll_device /dev/nbd0 30; do
|
while ! poll_device /dev/nbd0 30; do
|
||||||
echo "ERROR: boot device didn't show up after 30 seconds..."
|
echo "ERROR: boot device didn't show up after 30 seconds..."
|
||||||
|
Loading…
Reference in New Issue
Block a user