[Lunar-commits] <moonbase> lunar-init: Correct implementation of /run I chose 4MB tmpfs size because see no reason to have it bigger for now. Because /var/run should be symlink to /run we extend it to 8MB later if it will be filling up to much.
Zbigniew Luszpinski
zbiggy at lunar-linux.org
Mon Apr 25 23:27:05 CEST 2011
commit 7d7eb23aa2a25ef003c88331cb8083ced7b75203
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date: Mon Apr 25 23:27:05 2011 +0200
lunar-init: Correct implementation of /run
I chose 4MB tmpfs size because see no reason to have it bigger for now.
Because /var/run should be symlink to /run we extend it to 8MB
later if it will be filling up to much.
And remember /run is not udev thing. udev is just a module which started
to make use of it. So maintaning /run in udev is big no no.
---
utils/lunar-init/BUILD | 2 ++
utils/lunar-init/DETAILS | 2 +-
utils/lunar-init/mount | 7 ++++---
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/utils/lunar-init/BUILD b/utils/lunar-init/BUILD
index e5351eb..81caf68 100644
--- a/utils/lunar-init/BUILD
+++ b/utils/lunar-init/BUILD
@@ -2,6 +2,8 @@
prepare_install &&
+ mkdir -p /run &&
+
cd $SCRIPT_DIRECTORY/ &&
for SCRIPT in network hostname netmount mount ; do
diff --git a/utils/lunar-init/DETAILS b/utils/lunar-init/DETAILS
index 5e19f19..53b8e9f 100644
--- a/utils/lunar-init/DETAILS
+++ b/utils/lunar-init/DETAILS
@@ -2,7 +2,7 @@
VERSION=0.1.4
WEB_SITE=http://lunar-linux.org
ENTERED=20070404
- UPDATED=20100206
+ UPDATED=20110425
SHORT="the Lunar init scripts vital to any system"
PROFILE=yes
diff --git a/utils/lunar-init/mount b/utils/lunar-init/mount
index 2b62666..a94e8fa 100644
--- a/utils/lunar-init/mount
+++ b/utils/lunar-init/mount
@@ -166,6 +166,7 @@ start()
echo -e "Mounting filesystems:"
run_with_msg " * Mounting /proc" "mount -n -t proc proc /proc"
+ run_with_msg " * Mounting /run on /run" "mount -n -t tmpfs tmpfs /run -o size=4m,mode=0755"
if ! grep -qw "ro" /proc/cmdline; then
run_with_msg " * Remounting root read-only" "mount -n -o remount,ro /"
@@ -204,15 +205,15 @@ start()
kernel_is_26 && run_with_msg " * Mounting /sys" "mount -n -t sysfs sysfs /sys"
if [ "$DEVNODES" = "udev" ]; then
- run_with_msg " * Mounting udev on /dev" "mount -w -n -t tmpfs udevfs /dev -o size=6m,mode=0755"
+ run_with_msg " * Mounting udev on /dev" "mount -w -n -t tmpfs udevfs /dev -o size=6m,mode=0755"
# Creating "must have" static device nodes
run_without_msg "mkdir -p /dev/{pts,shm}"
run_without_msg "cp -a /lib/udev/devices/* /dev"
if [ ! -h /dev/ram ]; then
ln -sf /dev/ram0 /dev/ram
fi
- run_without_msg "echo > /proc/sys/kernel/hotplug" # Hotplug agents are deprecated!
- run_with_msg "Starting udev device handling daemon version `udevd --version`" "/sbin/udevd --daemon"
+ run_without_msg "echo > /proc/sys/kernel/hotplug" # Hotplug agents are deprecated!
+ run_with_msg "Starting udev device handling daemon version `udevd --version`" "/sbin/udevd --daemon"
run_with_msg "Activating coldplug devices" "/sbin/udevadm trigger"
run_with_msg "Devices activation - please wait" "/sbin/udevadm settle"
# This is first aid code for devices hard to init (too slow or to buggy for init by 1st time)
More information about the Lunar-commits
mailing list