severity 621803 important tags 621803 + patch thanks On Sat, Apr 09, 2011 at 03:08:37AM +0200, Michael Biebl wrote: > Package: initramfs-tools > Version: 0.98.8+45+g08fbe1e-1 > Severity: normal > User: rle...@debian.org > Usertags: run-transition > > Hi maks, > > we already talked about this and you already started implementing /run > support in initramfs-tools [1], so this is merely a bug to keep track > of this transition [2].
I didn't see a patch in git, so I've attached a simple one here. This creates /run as a tmpfs, and moves the mount to the rootfs /run as done for other filesystems. If this is all that is needed in the main initramfs, will it take long to get the /run support into unstable? It looks like this might be a prerequisite for a fully functional udev, and for other tools that store state in the initramfs, and it's a simple and safe change to make. I've raised the severity due to the /run transition being dependent on this being fixed. Many 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.
diff --git a/debian/changelog b/debian/changelog index 441b810..329ba4b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +initramfs-tools (0.98.8run0) unstable; urgency=low + + [ Roger Leigh ] + * Non-maintainer upload. + * Mount /run in initramfs and move onto root filesystem + (Closes: #621803). This means that /run is available as a writable + location from early boot, through to rcS and during normal system + operation. + + -- Roger Leigh <rle...@debian.org> Mon, 18 Apr 2011 17:23:27 +0100 + initramfs-tools (0.98.8) unstable; urgency=high [ maximilian attems ] diff --git a/init b/init index 1a178ff..1b5f75d 100755 --- a/init +++ b/init @@ -4,10 +4,14 @@ echo "Loading, please wait..." [ -d /dev ] || mkdir -m 0755 /dev [ -d /root ] || mkdir -m 0700 /root +[ -d /run ] || mkdir -m 0755 /run [ -d /sys ] || mkdir /sys [ -d /proc ] || mkdir /proc [ -d /tmp ] || mkdir /tmp mkdir -p /var/lock + +run_tmpfs_size="20%" +mount -t tmpfs -o "size=$run_tmpfs_size,mode=0755" run /run mount -t sysfs -o nodev,noexec,nosuid none /sys mount -t proc -o nodev,noexec,nosuid none /proc @@ -224,6 +228,7 @@ run_scripts /scripts/init-bottom [ "$quiet" != "y" ] && log_end_msg # Move virtual filesystems over to the real filesystem +mount -n -o move /run ${rootmnt}/run mount -n -o move /sys ${rootmnt}/sys mount -n -o move /proc ${rootmnt}/proc
signature.asc
Description: Digital signature