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
ca85896b
Commit
ca85896b
authored
May 24, 2016
by
Christian Hesse
😜
Committed by
Gerardo Exequiel Pozzi
May 24, 2016
Browse files
fix NBD boot without copy-to-ram
Signed-off-by:
Christian Hesse
<
mail@eworm.de
>
parent
091e40e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/initcpio/hooks/archiso_pxe_nbd
View file @
ca85896b
...
...
@@ -25,16 +25,19 @@ archiso_pxe_nbd_mount_handler () {
done
msg
":: Setup NBD from
${
archiso_nbd_srv
}
at /dev/nbd0"
nbd-client
${
archiso_nbd_srv
}
-N
${
archiso_nbd_name
}
/dev/nbd0
if
[[
"
${
copytoram
}
"
!=
"n"
]]
;
then
nbd-client
${
archiso_nbd_srv
}
-N
${
archiso_nbd_name
}
/dev/nbd0
copytoram
=
"y"
else
nbd-client
${
archiso_nbd_srv
}
-N
${
archiso_nbd_name
}
-systemd-mark
-persist
/dev/nbd0
fi
archisodevice
=
/dev/nbd0
archiso_mount_handler
${
newroot
}
msg
":: Disconnect NBD from
${
archiso_nbd_srv
}
at /dev/nbd0"
nbd-client
-d
/dev/nbd0
if
[[
"
${
copytoram
}
"
==
"y"
]]
;
then
msg
":: Disconnect NBD from
${
archiso_nbd_srv
}
at /dev/nbd0"
nbd-client
-d
/dev/nbd0
fi
}
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