Skip to content

Fwd: Shouldn't nbd automatically load the kernel module? #56

Closed
@cheese

Description

@cheese

Description of problem:
When installing the nbd package, there is nothing that automatically loads the kernel module nbd when using the nbd@.service. The module is needed for the client side to work.

Version-Release number of selected component (if applicable):
nbd-3.16.1-1.fc26.x86_64

How reproducible:
Every time.

Steps to Reproduce:

  1. systemctl start nbd@...

Actual results:
The service fails.

Expected results:
Successfully activation of the device.

Additional info:
I'm not sure if this is intentional or not. I worked around it by adding a file in /etc/modules-load.d, and then things work fine. Most services don't need that kind of additional help to work, however, so I felt it could be worth a report.

I can see reasons not to add this to all systems installing nbd. After all, only the client side needs the module. Perhaps a ExecStartPre configuration running "modprobe nbd" in the nbd@.service file, or would that be too ugly.

As I said, maybe this is intentional. Feel free to close immediately with "won't fix" if so.

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