DragonFly BSD
DragonFly commits List (threaded) for 2010-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: git: mkinitrd - add tool and infrastructure for initrd

From: Alex Hornung <ahornung@xxxxxxxxx>
Date: Thu, 1 Jul 2010 10:30:34 +0100

: What can these ramdisks be used for?

Fair question. For nothing really yet, but the intention is to be able
to mount root from lvm2 volumes, crypto volumes and all other sort of
device mapper volumes. They could also be used to enable iscsi root
support and any other mountable file system.

What happens is that the early userland init (oinit) spawns /etc/rc
(which is taken from /usr/share/initrd/etc on calling mkinitrd), which
then needs to mount the future root file system on /new_root and null
mount the /dev mount onto /new_root/dev. The current /etc/rc does this
by assuming I want to mount my default hammer system on da0s1d, but
the final intention is to add a much better early rc system that will
scan for lvm volumes amongst others and then read some parameter of
what disk should finally be mounted.

Hope that helps,

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]