[arch-projects] [initscripts] Linux distributions and /run/

Thomas Bächler thomas at archlinux.org
Thu Mar 31 11:04:27 EDT 2011


Am 31.03.2011 16:44, schrieb Tom Gundersen:
> On systemd systems with initramfs and LVM used, packagers must
> make sure, that the systemd and initramfs versions match. The initramfs
> needs to create the /run/ mountpoint for udev to store the data, and
> mount this tmpfs to /run in the rootfs, so the that the udev database
> is preserved for the udev version started in the rootfs.
> ***
> 
> The last paragraph is admittedly referring to systemd, but I think
> this is not important (I think the same case would apply to any init
> system mounting /run). Here I get the impression that there is
> something valuable in the udev database that could and should be
> preserved from initramfs to normal init (I don't fully understand what
> is happening here, so maybe it does not apply to Arch).
> 
>> I was thinking with regard to mdadm now: Maybe mdadm stores some
>> valuable data there.
> 
> They certainly store something in /run, but I don't know what happens
> if we throw it away at the end of initramfs.
> 
>>From all the discussions on this topic I really got the impression
> that /run is supposed to be created in the initramfs and then
> preserved until shutdown. Maybe it is worth having a look at what
> dracut is doing?

We can do that easily (identical as the /proc, /sys, /dev stuff).
However, prepare to run into problems when the initramfs udev version
does not match the version in the system.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20110331/b4741e86/attachment.asc>


More information about the arch-projects mailing list