public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/openrc:openrc-0.10.x commit in: init.d/
@ 2012-05-27 15:23 William Hubbs
  0 siblings, 0 replies; 7+ messages in thread
From: William Hubbs @ 2012-05-27 15:23 UTC (permalink / raw
  To: gentoo-commits

commit:     3ebaa31edbcd06a2d423d1a856d8b945f0784671
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sun May 27 15:03:24 2012 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun May 27 15:20:07 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=3ebaa31e

termencoding should not run on lxc

reported-by: Alexey Shvetsov <alexxy <AT> gentoo.org>

---
 init.d/termencoding.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/init.d/termencoding.in b/init.d/termencoding.in
index 5f09c98..0f243e2 100644
--- a/init.d/termencoding.in
+++ b/init.d/termencoding.in
@@ -9,7 +9,7 @@ ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}}
 
 depend()
 {
-	keyword -openvz -uml -vserver -xenu
+	keyword -lxc -openvz -uml -vserver -xenu
 	use root
 	after bootmisc
 }



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/openrc:openrc-0.10.x commit in: init.d/
@ 2012-09-10  0:17 William Hubbs
  0 siblings, 0 replies; 7+ messages in thread
From: William Hubbs @ 2012-09-10  0:17 UTC (permalink / raw
  To: gentoo-commits

commit:     0e57fade6440b7a6a409c1fbc3eba66745e03fb1
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Fri Aug 17 18:26:21 2012 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Sep  9 23:40:55 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=0e57fade

swapfiles: make sure /proc/swaps exists

If CONFIG_SWAP is turned off in the kernel, this file may not exist. In
that case, we should not try to read from it.

reported-by: <walter <AT> pratyeka.org>
X-Gentoo-Bug: 430378
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=430378

---
 init.d/swapfiles.in |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/init.d/swapfiles.in b/init.d/swapfiles.in
index f46f3c8..baf7591 100644
--- a/init.d/swapfiles.in
+++ b/init.d/swapfiles.in
@@ -31,14 +31,16 @@ stop()
 
 	case "$RC_UNAME" in
 		Linux)
-			while read filename type rest; do
-				case "$type" in
-					file) swapoff $filename >/dev/null;;
-				esac
-				case "$filename" in
-					/dev/loop*) swapoff $filename >/dev/null;;
-				esac
-			done < /proc/swaps
+			if [ -e /proc/swaps ]; then
+				while read filename type rest; do
+					case "$type" in
+						file) swapoff $filename >/dev/null;;
+					esac
+					case "$filename" in
+						/dev/loop*) swapoff $filename >/dev/null;;
+					esac
+				done < /proc/swaps
+			fi
 			;;
 	esac
 	eend 0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/openrc:openrc-0.10.x commit in: init.d/
@ 2012-09-10  0:17 William Hubbs
  0 siblings, 0 replies; 7+ messages in thread
From: William Hubbs @ 2012-09-10  0:17 UTC (permalink / raw
  To: gentoo-commits

commit:     a198ad3d4f7e051f2815686700fe60e1d73bdcb6
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 18 20:37:15 2012 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Sep  9 23:42:56 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=a198ad3d

Use do_umount's return value instead of eoutdent's.

---
 init.d/mount-ro.in |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in
index 369d544..0a797a7 100644
--- a/init.d/mount-ro.in
+++ b/init.d/mount-ro.in
@@ -12,6 +12,8 @@ depend()
 
 start()
 {
+	local ret=0
+
 	# Flush all pending disk writes now
 	sync; sync
 
@@ -39,6 +41,9 @@ start()
 	do_unmount "umount -r" \
 		--skip-point-regex "$m" \
 		"${fs:+--skip-fstype-regex}" $fs --nonetdev
+	ret=$?
+
 	eoutdent
-	eend $?
+
+	eend $ret
 }


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/openrc:openrc-0.10.x commit in: init.d/
@ 2012-09-10  0:17 William Hubbs
  0 siblings, 0 replies; 7+ messages in thread
From: William Hubbs @ 2012-09-10  0:17 UTC (permalink / raw
  To: gentoo-commits

commit:     604902f6c2b4c419af484a2a59df02fde3582862
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Fri Aug 24 15:30:04 2012 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Sep  9 23:53:18 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=604902f6

newnet: provide net if configuring more than the loopback interface

---
 init.d/network.in |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/init.d/network.in b/init.d/network.in
index d65a6a9..f11af57 100644
--- a/init.d/network.in
+++ b/init.d/network.in
@@ -12,7 +12,10 @@ depend()
 {
 	need localmount
 	after bootmisc
-	provide net
+	provide lo
+	if [ -n "$(interfaces)" ]; then
+		provide net
+	fi
 	keyword -jail -vserver
 }
 


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/openrc:openrc-0.10.x commit in: init.d/
@ 2012-09-10  0:17 William Hubbs
  0 siblings, 0 replies; 7+ messages in thread
From: William Hubbs @ 2012-09-10  0:17 UTC (permalink / raw
  To: gentoo-commits

commit:     9e18838c839fbcd1419782b376388bfa2cd34467
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Sat Sep  8 00:18:51 2012 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Sep 10 00:16:13 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=9e18838c

savecache: make sure $RC_LIBEXECDIR is writable

This is needed in case of a read-only root filesystem such as a diskless
client.

Reported-by: <walter <AT> pratyeka.org>
X-Gentoo-Bug: 430382
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=430382

---
 init.d/savecache.in |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/init.d/savecache.in b/init.d/savecache.in
index 373da1f..581be59 100644
--- a/init.d/savecache.in
+++ b/init.d/savecache.in
@@ -13,6 +13,14 @@ start()
 			return 1
 		fi
 	fi
+	if ! checkpath -W "$RC_LIBEXECDIR"; then
+		ewarn "WARNING: ${RC_LIBEXECDIR} is not writable!"
+		if ! yesno "${RC_GOINGDOWN}"; then
+			ewarn "Unable to save deptree cache"
+			return 1
+		fi
+		return 0
+	fi
 	ebegin "Saving dependency cache"
 	local rc=
 	if [ ! -d "$RC_LIBEXECDIR"/cache ]; then


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/openrc:openrc-0.10.x commit in: init.d/
@ 2012-09-10 20:57 William Hubbs
  0 siblings, 0 replies; 7+ messages in thread
From: William Hubbs @ 2012-09-10 20:57 UTC (permalink / raw
  To: gentoo-commits

commit:     ed0696443d213ac5227b0a18b57ae32174d897f0
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Mon Sep 10 20:43:42 2012 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Sep 10 20:56:52 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=ed069644

netmount: add checks for rpc.idmapd for nfs4 filesystems

Reported-by: <devurandom <AT> gmx.net>
X-Gentoo-Bug: 427996
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=427996

---
 init.d/netmount.in |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/init.d/netmount.in b/init.d/netmount.in
index cf5971c..c03820e 100644
--- a/init.d/netmount.in
+++ b/init.d/netmount.in
@@ -19,6 +19,21 @@ need_portmap()
 	return 1
 }
 
+need_idmap()
+{
+	local opts=
+	local IFS="
+"
+	set -- $(fstabinfo --options --fstype nfs4)
+	for opts; do
+		case ,$opts, in
+			*,noauto,*|*,nolock,*);;
+			*) return 0;;
+		esac
+	done
+	return 1
+}
+
 depend()
 {
 	# Only have portmap as a dependency if there is a nfs mount in fstab
@@ -31,6 +46,12 @@ depend()
 			|| pmap="$pmap portmap"
 	fi
 
+	# Only have rpc.idmapd as a dependency if there is a nfs4 mount in fstab
+	# that is set to mount at boot
+	if need_idmap; then
+		pmap="$pmap rpc.idmapd"
+	fi
+
 	config /etc/fstab
 	need net $pmap
 	use afc-client amd autofs openvpn


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/openrc:openrc-0.10.x commit in: init.d/
@ 2012-09-15 21:22 William Hubbs
  0 siblings, 0 replies; 7+ messages in thread
From: William Hubbs @ 2012-09-15 21:22 UTC (permalink / raw
  To: gentoo-commits

commit:     46e871a40865aa43cc51dc6afb3b92f5cf012e76
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Fri Sep 14 19:29:00 2012 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Sep 15 18:26:31 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=46e871a4

netmount: do not handle NFS mounts

Since nfs and nfs4 file systems require extra daemons to be running on
the client to function properly, netmount should not try to handle these
file systems.

Reported-by: <devurandom <AT> gmx.net>
X-Gentoo-Bug: 427996
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=427996

---
 init.d/netmount.in |   88 +++++++++++++--------------------------------------
 1 files changed, 23 insertions(+), 65 deletions(-)

diff --git a/init.d/netmount.in b/init.d/netmount.in
index c03820e..4b6437e 100644
--- a/init.d/netmount.in
+++ b/init.d/netmount.in
@@ -2,83 +2,27 @@
 # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 # Released under the 2-clause BSD license.
 
-description="Mounts network shares according to /etc/fstab."
-
-need_portmap()
-{
-	local opts=
-	local IFS="
-"
-	set -- $(fstabinfo --options --fstype nfs,nfs4)
-	for opts; do
-		case ,$opts, in
-			*,noauto,*|*,nolock,*);;
-			*) return 0;;
-		esac
-	done
-	return 1
-}
-
-need_idmap()
-{
-	local opts=
-	local IFS="
-"
-	set -- $(fstabinfo --options --fstype nfs4)
-	for opts; do
-		case ,$opts, in
-			*,noauto,*|*,nolock,*);;
-			*) return 0;;
-		esac
-	done
-	return 1
-}
+description="Mounts network shares, other than NFS, according to /etc/fstab."
+# We skip all NFS shares in this script because they require extra
+# daemons to be running on the client in order to work correctly.
+# It is best to allow nfs-utils to handle all nfs shares.
 
 depend()
 {
-	# Only have portmap as a dependency if there is a nfs mount in fstab
-	# that is set to mount at boot
-	local pmap=
-	if need_portmap; then
-		pmap="rpc.statd"
-		[ -x @SYSCONFDIR@/init.d/rpcbind ] \
-			&& pmap="$pmap rpcbind" \
-			|| pmap="$pmap portmap"
-	fi
-
-	# Only have rpc.idmapd as a dependency if there is a nfs4 mount in fstab
-	# that is set to mount at boot
-	if need_idmap; then
-		pmap="$pmap rpc.idmapd"
-	fi
-
 	config /etc/fstab
-	need net $pmap
+	need net
 	use afc-client amd autofs openvpn
-	use dns nfs nfsmount portmap rpcbind rpc.statd rpc.lockd
+	use dns
 	keyword -jail -vserver
 }
 
 start()
 {
-	local myneed= myuse= pmap="portmap" nfsmounts=
-	[ -x @SYSCONFDIR@/init.d/rpcbind ] && pmap="rpcbind"
-
 	local x= fs= rc=
 	for x in $net_fs_list $extra_net_fs_list; do
 		case "$x" in
 			nfs|nfs4)
-			# If the nfsmount script took care of the nfs
-			# filesystems, then there's no point in trying
-			# them twice
-			service_started nfsmount && continue
-
-			# Only try to mount NFS filesystems if portmap was
-			# started. This is to fix "hang" problems for new
-			# users who do not add portmap to the default runlevel.
-			if need_portmap && ! service_started "$pmap"; then
-				continue
-			fi
+			continue
 			;;
 		esac
 		fs="$fs${fs:+,}$x"
@@ -103,7 +47,14 @@ stop()
 	. "$RC_LIBEXECDIR"/sh/rc-mount.sh
 
 	for x in $net_fs_list $extra_net_fs_list; do
-		fs="$fs${fs:+,}$x"
+		case "$x" in
+			nfs|nfs4)
+				continue
+				;;
+			*)
+				fs="$fs${fs:+,}$x"
+				;;
+		esac
 	done
 	if [ -n "$fs" ]; then
 		umount -at $fs || eerror "Failed to simply unmount filesystems"
@@ -112,7 +63,14 @@ stop()
 	eindent
 	fs=
 	for x in $net_fs_list $extra_net_fs_list; do
-		fs="$fs${fs:+|}$x"
+		case "$x" in
+			nfs|nfs4)
+				continue
+				;;
+			*)
+				fs="$fs${fs:+|}$x"
+				;;
+		esac
 	done
 	[ -n "$fs" ] && fs="^($fs)$"
 	do_unmount umount ${fs:+--fstype-regex} $fs --netdev


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-09-15 21:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-27 15:23 [gentoo-commits] proj/openrc:openrc-0.10.x commit in: init.d/ William Hubbs
  -- strict thread matches above, loose matches on Subject: below --
2012-09-10  0:17 William Hubbs
2012-09-10  0:17 William Hubbs
2012-09-10  0:17 William Hubbs
2012-09-10  0:17 William Hubbs
2012-09-10 20:57 William Hubbs
2012-09-15 21:22 William Hubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox