Util-Linux package development
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Stanislav Brabec <sbrabec@suse.cz>
Cc: util-linux@vger.kernel.org, Frederic Crozat <fcrozat@suse.com>
Subject: Re: [PATCH] raw: Add raw.service
Date: Thu, 30 May 2019 14:35:30 +0200	[thread overview]
Message-ID: <20190530123530.q2ngscgnmgi3s327@ws> (raw)
In-Reply-To: <f4c8feb9-2bdc-8a40-7bc1-d24fcd94d0a7@suse.cz>

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@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2019-05-30 12:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-29 22:30 [PATCH] raw: Add raw.service Stanislav Brabec
2019-05-30 12:35 ` Karel Zak [this message]
2019-05-30 13:19   ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190530123530.q2ngscgnmgi3s327@ws \
    --to=kzak@redhat.com \
    --cc=fcrozat@suse.com \
    --cc=sbrabec@suse.cz \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox