dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/3] init: add support to directly boot to a mapped device
@ 2016-02-20 18:13 Kees Cook
  2016-02-20 18:13 ` [PATCH v5 1/3] dm: export a table+mapped device to the ioctl interface Kees Cook
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Kees Cook @ 2016-02-20 18:13 UTC (permalink / raw)
  To: Alasdair Kergon
  Cc: Kees Cook, Mike Snitzer, dm-devel, Jonathan Corbet, Shaohua Li,
	Dan Ehrenberg, Rafael J. Wysocki, Chen Yu, Vishnu Pratap Singh,
	Andrew Morton, Yaowei Bai, linux-doc, linux-kernel, linux-raid,
	Will Drewry, David Zeuthen

This is a resurrection of a patch series from a few years back, first
brought to the dm maintainers in 2010. It creates a way to define dm
devices on the kernel command line for systems that do not use an
initramfs, or otherwise need a dm running before init starts.

This has been used by Chrome OS for several years, and now by Brillo
(and likely Android soon).

The last version was v4:
https://patchwork.kernel.org/patch/104860/
https://patchwork.kernel.org/patch/104861/

-Kees

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [PATCH v5 0/3] init: add support to directly boot to a mapped device
@ 2016-11-17  6:55 Barry Kauler
  2016-11-17 23:04 ` Barry Kauler
  0 siblings, 1 reply; 13+ messages in thread
From: Barry Kauler @ 2016-11-17  6:55 UTC (permalink / raw)
  To: dm-devel

Hi,
I have just joined this list. I am a newcomer to using device-mapper.
I currently maintain Quirky Linux, prior to that, Puppy Linux. Puppy
uses overlay filesystems, usually aufs, to achieve what could also be
done, partly, with device-mapper.

Puppy has a initramfs, however, Quirky is a traditional full install,
and without an initramfs. When I cam across Kees Cook's v5 patches to
setup device mapping at the kernel boot params, I could see
possibilities for Quirky.

However, it seems that the 'table' format when using 'dmsetup create',
and also in the kernel boot params, that devices can only be specified
by the normal name (sd*) or by major:minor numbers.

This is what my understanding is, reading the docs. However, if I am
booting from a removable drive, that is not satisfactory.

I have sent a separate email direct to Kees, with more details. But
basically, my question is, could the 'table' format be extended to
accept PARTUUIDs, either the GUID format as used in GPT drives (use
'gdisk' to get it), or <NT disk identifier>-<partition number> format
for MBR disks.

For example, gdisk provides this for one of my flash sticks, second partition:

Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4

And that can be used as a boot param:

root=PARTUUID=0FC63DAF-8483-4772-8E79-3D69D8477DE4

The kernel understands this type of UUID, so is it feasible for the
'table' format in Kee's patch to also accept it?

Please remember that I am a beginner to dm, so if you feel like
responding, please keep the explanations simple!

Regards,
Barry Kauler

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

end of thread, other threads:[~2016-11-17 23:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-20 18:13 [PATCH v5 0/3] init: add support to directly boot to a mapped device Kees Cook
2016-02-20 18:13 ` [PATCH v5 1/3] dm: export a table+mapped device to the ioctl interface Kees Cook
2016-02-20 18:13 ` [PATCH v5 2/3] dm: make mapped_device locking functions available Kees Cook
2016-02-20 18:13 ` [PATCH v5 3/3] init: add support to directly boot to a mapped device Kees Cook
2016-02-21 22:08 ` [PATCH v5 0/3] " Alasdair G Kergon
2016-02-22 18:55   ` Kees Cook
2016-02-26 16:53     ` Mike Snitzer
2016-02-26 18:52       ` Kees Cook
2016-02-26 19:21         ` Mike Snitzer
2016-02-26 19:59           ` Kees Cook
2016-02-26 20:47             ` Mike Snitzer
  -- strict thread matches above, loose matches on Subject: below --
2016-11-17  6:55 Barry Kauler
2016-11-17 23:04 ` Barry Kauler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).