sm-grimoire-bugs AT lists.ibiblio.org
Subject: SourceMage Grimoire Bug List
List archive
[SM-Grimoire-Bugs] [Bug 7311] init.d update left a broken inittab and /etc/sysconfig/devices behind
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-grimoire-bugs AT lists.ibiblio.org
- Subject: [SM-Grimoire-Bugs] [Bug 7311] init.d update left a broken inittab and /etc/sysconfig/devices behind
- Date: 14 Apr 2007 16:16:05 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=7311
------- Additional Comments From jakakranjc AT email.si 2007-04-14 11:16 -------
What do you think about this? It works for me. It could check /proc/mounts
instead - awk returns 2 if the file does not exsist - but I think fstab is
good
enough as the script does a mount -a before.
--- a/smgl/init.d/init.d/mountall.sh
+++ b/smgl/init.d/init.d/mountall.sh
@@ -92,6 +92,11 @@ start()
mount -a -t tmpfs
evaluate_retval
+ # bug 7311 - if proc was mounted, list it in mtab; awk is /usr friendly
+ if awk 'BEGIN{proc=1} /\/proc/{proc=0} END{exit proc}' /etc/fstab; then
+ builtin echo 'none /proc proc rw 0 0' >> /etc/mtab
+ fi
+
#As per FHS sm bug #10509
echo "Cleaning out /var/run..."
[ -d /var/run ] && recursive_rm /var/run/*
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-
[SM-Grimoire-Bugs] [Bug 7311] init.d update left a broken inittab and /etc/sysconfig/devices behind,
bugzilla-daemon, 04/13/2007
- <Possible follow-up(s)>
- [SM-Grimoire-Bugs] [Bug 7311] init.d update left a broken inittab and /etc/sysconfig/devices behind, bugzilla-daemon, 04/14/2007
- [SM-Grimoire-Bugs] [Bug 7311] init.d update left a broken inittab and /etc/sysconfig/devices behind, bugzilla-daemon, 04/14/2007
- [SM-Grimoire-Bugs] [Bug 7311] init.d update left a broken inittab and /etc/sysconfig/devices behind, bugzilla-daemon, 04/15/2007
- [SM-Grimoire-Bugs] [Bug 7311] init.d update left a broken inittab and /etc/sysconfig/devices behind, bugzilla-daemon, 04/15/2007
- [SM-Grimoire-Bugs] [Bug 7311] init.d update left a broken inittab and /etc/sysconfig/devices behind, bugzilla-daemon, 04/15/2007
Archive powered by MHonArc 2.6.24.