All of lore.kernel.org
 help / color / mirror / Atom feed
* Making udev aware of dm-init devices
@ 2019-11-04 15:43 David Michael
  2019-11-05 17:04 ` Mike Snitzer
  0 siblings, 1 reply; 3+ messages in thread
From: David Michael @ 2019-11-04 15:43 UTC (permalink / raw)
  To: dm-devel

Hi,

I would like to be able to use a root device configured by
dm-mod.create with an initrd in some scenarios, but it appears that
the default udev rules do not recognize this setup which prevents
systemd from mounting the root file system.  There is a systemd bug
report with a demo script to illustrate what I mean.[1]  Has anyone
here encountered this, or is there a solution already?

Thanks.

David

[1] https://github.com/systemd/systemd/issues/13618#issuecomment-539566330

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Making udev aware of dm-init devices
  2019-11-04 15:43 Making udev aware of dm-init devices David Michael
@ 2019-11-05 17:04 ` Mike Snitzer
  2019-11-05 17:47   ` David Michael
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Snitzer @ 2019-11-05 17:04 UTC (permalink / raw)
  To: David Michael; +Cc: dm-devel

On Mon, Nov 04 2019 at 10:43am -0500,
David Michael <fedora.dm0@gmail.com> wrote:

> Hi,
> 
> I would like to be able to use a root device configured by
> dm-mod.create with an initrd in some scenarios, but it appears that
> the default udev rules do not recognize this setup which prevents
> systemd from mounting the root file system.  There is a systemd bug
> report with a demo script to illustrate what I mean.[1]  Has anyone
> here encountered this, or is there a solution already?

Why do you want this?  dm-mod.create and initrd are mutually
exclussive... that was/is the point.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Making udev aware of dm-init devices
  2019-11-05 17:04 ` Mike Snitzer
@ 2019-11-05 17:47   ` David Michael
  0 siblings, 0 replies; 3+ messages in thread
From: David Michael @ 2019-11-05 17:47 UTC (permalink / raw)
  To: Mike Snitzer; +Cc: dm-devel

On Tue, Nov 5, 2019 at 12:04 PM Mike Snitzer <snitzer@redhat.com> wrote:
> On Mon, Nov 04 2019 at 10:43am -0500,
> David Michael <fedora.dm0@gmail.com> wrote:
>
> > Hi,
> >
> > I would like to be able to use a root device configured by
> > dm-mod.create with an initrd in some scenarios, but it appears that
> > the default udev rules do not recognize this setup which prevents
> > systemd from mounting the root file system.  There is a systemd bug
> > report with a demo script to illustrate what I mean.[1]  Has anyone
> > here encountered this, or is there a solution already?
>
> Why do you want this?  dm-mod.create and initrd are mutually
> exclussive... that was/is the point.

I am using the same image building process for custom systems with
dm-init etc. built into the kernel and for Fedora-based systems, which
require an initrd to load the device mapper kernel modules as well as
NVMe support so it can find the devices in the first place.  I'd
prefer to be uniform and use dm-mod.create everywhere rather than
bundle the configuration into an initrd for certain distros (or be
uniform by creating initrds for my custom builds that don't otherwise
need one).

As mentioned in the systemd bug, dm-mod.create works correctly with an
initrd aside from udev needing to be manually triggered before systemd
can use it.  I was looking for suggestions for how this could be
handled upstream ideally so I don't have to customize an initrd to add
a udevadm trigger.

Thanks.

David

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-05 17:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-04 15:43 Making udev aware of dm-init devices David Michael
2019-11-05 17:04 ` Mike Snitzer
2019-11-05 17:47   ` David Michael

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.