On Thu, May 30, 2019 at 12:30:16AM +0200, Stanislav Brabec wrote: > Add raw.service that allows to initialize raw devices on boot. And why not udev? For RHEL we install /usr/lib/udev/rules.d/60-raw.rules, the file contains only example # # Enter raw device bindings here. # # An example would be: # ACTION=="add", KERNEL=="sda", RUN+="/usr/bin/raw /dev/raw/raw1 %N" # to bind /dev/raw/raw1 to /dev/sda, or # ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/usr/bin/raw /dev/raw/raw2 %M %m" # to bind /dev/raw/raw2 to the device with major 8, minor 1. and users can add theirs devices to the file. I have talked (on IRC) about it with systemd guys and suggestion is to do devices initialization in udev when the device is discovered rather than later in systemd. I'm also not sure if introduce an extra config file in service is a good idea. Maybe all we need is to add any info about udev configuration to raw(8). Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com