Skip to content

Partprobe needed to access nbd0p1 #99

@alkisg

Description

@alkisg

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions