NetworkBlockDevice / nbd

Network Block Device
GNU General Public License v2.0
459 stars 119 forks source link

Partprobe needed to access nbd0p1 #99

Open alkisg opened 5 years ago

alkisg commented 5 years ago

The following /proc/cmdline fails:

nbdroot=server:image root=/dev/nbd0p1

with error:

ALERT! /dev/nbd0p1 does not exist. Dropping to a shell!

A workaround is to patch local-top/nbd to call partprobe/blockdev as follows:

sed 's/systemd-mark$/& -b 512; blockdev --rereadpt $nbdrootdev/' -i /scripts/local-top/nbd

I initially reported this as a secondary issue in #87, but since the primary issue there was resolved, I'm filing this one. Thanks!

yoe commented 1 year ago

This has now been fixed in my Debian branch. Sorry for the (insane) delays, a better guess next time is to file a Debian bug ;-)