Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
archiso
Commits
63c62911
Commit
63c62911
authored
May 25, 2016
by
Christian Hesse
😜
Committed by
Gerardo Exequiel Pozzi
May 25, 2016
Browse files
move modprobe to run_earlyhook()
Signed-off-by:
Christian Hesse
<
mail@eworm.de
>
parent
51b7ed7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/initcpio/hooks/archiso_pxe_nbd
View file @
63c62911
# 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..."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment