# HG changeset patch # User Christophe Lincoln # Date 1338634133 -7200 # Node ID 654573f60194b7ab52d04a1823f06918827a9149 # Parent 537fa92f46a4c8173b28495554d2f594a57e2b66 mount /run as tmpfs (less disk acess and faster) diff -r 537fa92f46a4 -r 654573f60194 rootfs/etc/init.d/rcS --- a/rootfs/etc/init.d/rcS Sat Jun 02 12:41:56 2012 +0200 +++ b/rootfs/etc/init.d/rcS Sat Jun 02 12:48:53 2012 +0200 @@ -18,10 +18,15 @@ echo $(colorize 34 "Processing: /etc/init.d/rcS") # Mount /proc -echo -n "Mounting proc filesystem..." +echo -n "Mounting proc filesystem on: /proc" mount proc status +# Mount /run as tmpfs so runtime data are not written to disk +echo -n "Mounting tmpfs filesystem on: /run" +mount -t tmpfs tmpfs /run +status + # Mount all from: /etc/fstab echo "Mounting filesystems in fstab..." mount -a @@ -37,8 +42,8 @@ # Clean up echo -n "Cleaning up the system..." -find /var/run -name "*.pid" -type f | xargs /bin/rm -f -rm -rf /tmp && mkdir /tmp && chmod 1777 /tmp +rm -rf /tmp /var/run && ln -s /run /var/run +mkdir /tmp && chmod 1777 /tmp status # Start syslogd and klogd. diff -r 537fa92f46a4 -r 654573f60194 sat --- a/sat Sat Jun 02 12:41:56 2012 +0200 +++ b/sat Sat Jun 02 12:48:53 2012 +0200 @@ -112,9 +112,10 @@ # Mirror echo "$mirror" > $distro/var/lib/tazpkg/mirror - # /init + # /init & /run cd $distro rm init && ln -s /bin/busybox init + mkdir run # Update modules.dep depmod -b . 3.2.14-slitaz