[Pkg-sysvinit-devel] /run transition

Roger Leigh rleigh at codelibre.net
Fri Apr 22 18:29:03 UTC 2011


On Fri, Apr 22, 2011 at 07:27:00PM +0100, Roger Leigh wrote:
> On Sun, Apr 17, 2011 at 07:21:56AM +1000, Kel Modderman wrote:
> > On Sun, 17 Apr 2011 02:06:50 AM Roger Leigh wrote:
> > > Done.  The diff to sync svn with the uploaded NMU is attached.  I stupidly
> > > didn't sync with svn for the upload, so I uploaded a second time with the
> > > svn changes synched, which is why there's a second revision in the
> > > attached diff.
> > 
> > Applied the diff. Also applied one more patch to svn, so please do sync with
> > that before further /run fixups.
> 
> 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.
> 
> 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.

Patch now actually attached...


-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initscripts-unify-mount.patch
Type: text/x-diff
Size: 29479 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20110422/7d0a37bb/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20110422/7d0a37bb/attachment-0001.pgp>


More information about the Pkg-sysvinit-devel mailing list