Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244763 - sys-fs/device-mapper-1.02.27 init script tests for baselayout-2 with `[ -e /etc/init.d/root ]', where you really should put `!' before `-e'
Summary: sys-fs/device-mapper-1.02.27 init script tests for baselayout-2 with `[ -e /e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Alasdair Kergon
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-28 13:26 UTC by Xiao-Yong JIN
Modified: 2008-10-28 17:13 UTC (History)
1 user (show)

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 Xiao-Yong JIN 2008-10-28 13:26:37 UTC
In file /etc/init.d/device-mapper,

start() {
	if [ -e /etc/init.d/root ] ; then
		eerror "The ${SVCNAME} init script is written for baselayout-2"
		eerror "Please do not use it with baselayout-1"
		return 1
	fi

	start_addon dm	
}

But

% equery b /etc/init.d/root
[ Searching for file(s) /etc/init.d/root in *... ]
sys-apps/openrc-0.3.0-r1 (/etc/init.d/root)

And I have

% equery l baselayout
[ Searching for package 'baselayout' in all categories among: ]
 * installed packages
[I--] [ ~] sys-apps/baselayout-2.0.0 (0)

Apparently, you need the `!' as
...
if [ ! -e /etc/init.d/root ] 
...

Reproducible: Always

Actual Results:  
device-mapper doesn't start during boot.


Portage 2.2_rc12 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r6-x86_64-Intel-R-_Pentium-R-_D_CPU_3.40GHz-with-glibc2.2.5
Timestamp of tree: Tue, 28 Oct 2008 12:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r4
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS=""
LINGUAS="en en_US zh zh_CN"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl alsa amd64 audiofile avahi berkdb bzip2 cairo caps cddb cdparanoia cdr cjk cli cracklib crypt cscope cups curl dbus djvu dri dts dv dvb dvd dvdread eds emacs encode exif fam fbcon ffmpeg fftw firefox flac fltk fontconfig fortran ftp gd gdbm geoip gif git gmp gnome gnome-keyring gnutls gpm graphviz gstreamer gtk gtkhtml hal iconv idn imagemagick imlib ipod ipv6 isdnlog java jbig jpeg jpeg2k lapack latex lcms libnotify libsamplerate lzo m17n-lib mad midi mmap mmx mng modplug mono mp3 mpeg mudflap musepack musicbrainz ncurses nls nptl nptlonly nsplugin odbc ogg openal openexr opengl openmp oss pam pcre pdf perl plotutils png pppd python qt4 quicktime readline reflection sasl sdl session sndfile speex spell spl sqlite3 sse sse2 ssl startup-notification subversion svg tcpd tetex theora threads tiff tk truetype unicode usb v4l vcd vim-syntax vorbis wavpack wmf wxwindows x264 xcb xcomposite xface xine xinerama xml xmlrpc xorg xpm xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh zh_CN" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2008-10-28 17:13:57 UTC
re-emerge. It's fixed.