Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222783 - baselayout-1.12.10-r5: Network device shutdown isues an error if unionctl exists
Summary: baselayout-1.12.10-r5: Network device shutdown isues an error if unionctl exists
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-19 10:08 UTC by Petric Frank
Modified: 2008-05-31 10:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petric Frank 2008-05-19 10:08:56 UTC
If a network device goes down (i.e. /etc/init.d/net.eth0 stop) an error was emitted.

I tracked down that issue. It comes from the existance of the unionctl tool. If it exists the call to is_union_fs in the script resolves to true and the appropriate if-then block is executed.
See line 1006 of file /etc/init.d/net.lo which reads:

	elif is_union_fs / ; then
		for x in $(unionctl "${dir}" --list \
		| sed -e 's/^\(.*\) .*/\1/') ; do
			if is_net_fs "${x}" ; then 

The culprit is that ${dir} resolves to nothing. As result the output of unionctl is a helper page. Analyzing this output with sed and feeding it to is_net_fs results in error outputs.

I suggest to change the line

		for x in $(unionctl "${dir}" --list \

to

		for x in $(unionctl "/" --list \


Reproducible: Always

Actual Results:  
Error message came out if unionctl tool is installed:
------------------- cut -----------------------
 Stopping eth1
No such file or directory
   Bringing down eth0
     Shutting down eth0 ...
------------------- cut -----------------------


Expected Results:  
No error message.

Portage 2.1.4.4 (unavailable, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 i686)
=================================================================
System uname: 2.6.23-gentoo-r6 i686 unknown
Timestamp of tree: Unknown
dev-lang/python:     2.4.4-r9
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="minimal"
Unset:  ACCEPT_KEYWORDS, EMERGE_DEFAULT_OPTS
Comment 1 SpanKY gentoo-dev 2008-05-31 10:44:07 UTC
thanks, ive changed it to / in svn