[Pkg-sysvinit-devel] /run transition

Kel Modderman kel at otaku42.de
Sat Apr 23 00:07:28 UTC 2011


On Sat, 23 Apr 2011 04:27:00 AM Roger Leigh wrote:
> Hi Kel and other sysvinit developers,
> 
> I've attached a further update for your consideration, which fixes a
> few issues.  If it's OK with you, this could be uploaded to
> experimental (with your changes folded into the same version in the
> changelog) as 2.88dsf-13.5.  Unless you'd prefer to do a maintainer
> upload.
> 
> The logic used for mounting filesystems is duplicated entirely between
> the various scripts doing mounting, and the mtab script used to
> generate the initial mtab.  This includes the domtab() function, which
> is almost entirely identical to domount() with the use of -f with mount.
> This patch removes the duplication, and uses the same codepaths for
> both mounting and mtab generation, which will make the scripts much
> more robust when making any changes.

Great improvement.

> 
> The reason for doing this was principally to allow for /remounting/ of
> already mounted filesystems so that filesystems mounted in the
> initramfs and subsequently moved onto the rootfs could be made to
> use the mount options specified in /etc/fstab (and /etc/default/tmpfs,
> where applicable).  This means that all filesystems mounted by the
> initramfs are entirely user-configurable, so mount options and policies
> are not hardcoded in the initramfs.  I also added remount/reload
> argument support to mountkernfs/mountdevsubfs which means you can edit
> /etc/defaults/* and/or /etc/fstab and then reload to make those changes
> active.
> 
> Other than that, we create relative rather than absolute symlinks, and
> I've made the error checking and other parts of the scripts more
> robust.
> 
> Other than these changes, I'm not aware of anything outstanding in
> initscripts needing changes to support /run.  The symlinks neeed
> making relative, and while I did the mount changes to allow for a
> clean handover from the initramfs-mounted /run to the real system
> so our configuration would still get applied, this is a general
> change which applies to all initramfs-mounted filesystems via
> creation of a suitable entry in /etc/fstab.

In my opnion: do not hesitate to upload this to experimental and continue the
improvement of the transition to /run.

Have you any comment about #623174 and #623076 ?

Thanks, Kel.



More information about the Pkg-sysvinit-devel mailing list