nbd icon indicating copy to clipboard operation
nbd copied to clipboard

Partprobe needed to access nbd0p1

Open alkisg opened this issue 6 years ago • 1 comments

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!

alkisg avatar May 09 '19 08:05 alkisg

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 ;-)

yoe avatar Jul 28 '23 17:07 yoe