chiark / gitweb /
gpt-auto-generator: do not assume that /dev/block/%u:%u is useable
authorLennart Poettering <lennart@poettering.net>
Tue, 17 Sep 2013 23:04:40 +0000 (18:04 -0500)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Sep 2013 23:04:40 +0000 (18:04 -0500)
commit3db604b907323b8df0fc810216f6112056d26a02
tree1d0f0edc750ea594b93b253a3a6e3068ac36c723
parentef5bfcf668e6029faa78534dfeb2591df854cdef
gpt-auto-generator: do not assume that /dev/block/%u:%u is useable

The generator might run before udev, and udev sets up the /dev/block/
symlinks, hence we cannot use them from the gpt generator. Instead,
manually translate a major/minor to a device node.
src/gpt-auto-generator/gpt-auto-generator.c