slitaz-arm rev 19
mount /run as tmpfs (less disk acess and faster)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jun 02 12:48:53 2012 +0200 (2012-06-02) |
parents | 537fa92f46a4 |
children | 432ac2334e26 |
files | rootfs/etc/init.d/rcS sat |
line diff
1.1 --- a/rootfs/etc/init.d/rcS Sat Jun 02 12:41:56 2012 +0200 1.2 +++ b/rootfs/etc/init.d/rcS Sat Jun 02 12:48:53 2012 +0200 1.3 @@ -18,10 +18,15 @@ 1.4 echo $(colorize 34 "Processing: /etc/init.d/rcS") 1.5 1.6 # Mount /proc 1.7 -echo -n "Mounting proc filesystem..." 1.8 +echo -n "Mounting proc filesystem on: /proc" 1.9 mount proc 1.10 status 1.11 1.12 +# Mount /run as tmpfs so runtime data are not written to disk 1.13 +echo -n "Mounting tmpfs filesystem on: /run" 1.14 +mount -t tmpfs tmpfs /run 1.15 +status 1.16 + 1.17 # Mount all from: /etc/fstab 1.18 echo "Mounting filesystems in fstab..." 1.19 mount -a 1.20 @@ -37,8 +42,8 @@ 1.21 1.22 # Clean up 1.23 echo -n "Cleaning up the system..." 1.24 -find /var/run -name "*.pid" -type f | xargs /bin/rm -f 1.25 -rm -rf /tmp && mkdir /tmp && chmod 1777 /tmp 1.26 +rm -rf /tmp /var/run && ln -s /run /var/run 1.27 +mkdir /tmp && chmod 1777 /tmp 1.28 status 1.29 1.30 # Start syslogd and klogd.
2.1 --- a/sat Sat Jun 02 12:41:56 2012 +0200 2.2 +++ b/sat Sat Jun 02 12:48:53 2012 +0200 2.3 @@ -112,9 +112,10 @@ 2.4 # Mirror 2.5 echo "$mirror" > $distro/var/lib/tazpkg/mirror 2.6 2.7 - # /init 2.8 + # /init & /run 2.9 cd $distro 2.10 rm init && ln -s /bin/busybox init 2.11 + mkdir run 2.12 2.13 # Update modules.dep 2.14 depmod -b . 3.2.14-slitaz