[Pkg-sysvinit-devel] Bug#623174: Bug#621803: Add support for /run directory

rleigh rleigh at codelibre.net
Tue Apr 26 11:06:14 UTC 2011


block 623174 by 621803
thanks

On Fri, Apr 22, 2011 at 08:14:47PM +0100, Roger Leigh wrote:
> On Mon, Apr 18, 2011 at 07:38:41PM +0100, Roger Leigh wrote:
> > By the way, could you consider adding this patch to your branch:
> 
> diff --git a/init b/init
> index 38c8a5d..cdbfe50 100755
> --- a/init
> +++ b/init
> @@ -25,7 +25,7 @@ if ! mount -t devtmpfs -o mode=0755 none /dev; then
>  fi
>  mkdir /dev/pts
>  mount -t devpts -o noexec,nosuid,gid=5,mode=0620 none /dev/pts || true
> -mount -t tmpfs -o nodev,noexec,nosuid,mode=0755 none /run
> +mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
>  mkdir /run/initramfs
>  
>  # Export the dpkg architecture
> 
> Slightly simpler than the previous patch, but does the same job.
> Please note that I've now patched initscripts
> (http://paste.debian.net/114826/ and
> http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/2011-April/004990.html) so that the filesystems mounted in the initramfs and later moved
> over to the root filesystem are remounted with the mount options
> specified in /etc/fstab (or /etc/default/tmpfs if no fstab entry
> exists).  In consequence, it's no longer critical that the mount
> option defaults in the initramfs match the "real" root filesystem
> defaults, because they will always be applied by mountkernfs/
> mountdevsubfs.  So if you choose not to apply this, that's fine--it's
> just a "nice to have" addition; the patch as it stands without the
> above change is equally acceptable.
> 
> Thanks for doing this.  Do we have any ETA on an upload?

The updated initscripts should be uploaded to experimental later today.
This includes all the changes listed above.

I've added the block above because we can't make an upload of sysvinit/
initscripts to unstable until we have an updated initramfs-tools in
unstable, or else udev will break.  Therefore in order to have a smooth
transition we need initramfs-tools uploading first, followed by
initscripts.

Marco, have you tested this upgrade path?  That is /run in the
initramfs and no /run on the rootfs?  Is udev checking for that and
not using /run in this scenario (or moving the files from /run to
/dev/.udev)?  We will need to cope with this for a brief transitional
period when initramfs-tools is updated and initscripts is not.


Thanks,
Roger

-- 
  .''`.  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: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20110426/b397fa04/attachment.pgp>


More information about the Pkg-sysvinit-devel mailing list