diff --git a/posix/subsystem/src/subsystem/block.cpp b/posix/subsystem/src/subsystem/block.cpp index aa9241ba5..6149c306c 100644 --- a/posix/subsystem/src/subsystem/block.cpp +++ b/posix/subsystem/src/subsystem/block.cpp @@ -51,7 +51,10 @@ struct Device final : UnixDevice, drvcore::BlockDevice { } void composeUevent(drvcore::UeventProperties &ue) override { + std::pair dev = getId(); ue.set("SUBSYSTEM", "block"); + ue.set("MAJOR", std::to_string(dev.first)); + ue.set("MINOR", std::to_string(dev.second)); } int major;