Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 202058

Summary: sys-fs/lvm2-2.02.28-r4 shutdown script fails
Product: Gentoo Linux Reporter: Thomas S. Howard <thoward1120>
Component: [OLD] Core systemAssignee: Doug Goldstein (RETIRED) <cardoe>
Severity: normal CC: base-system, robbat2, rocket
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---

Description Thomas S. Howard 2007-12-12 17:03:03 UTC
Currently, the script has this:

ROOT_DEVICE=`mount|grep " / "|awk '{print $1}'

and the output is this:


which breaks the rest of the script, causing a "too many arguments" and a "expected binary operator" error.  A quick fix is:

ROOT_DEVICE=`mount|grep " / "|awk '{print $1}'|grep -v rootfs`

which provides only "/dev/root" and allows the script to finish.  

Reproducible: Always

Steps to Reproduce:
1. Shutdown w/an lvm2 system
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-12 20:09:13 UTC
Reopen with emerge --info.
Comment 2 Thomas S. Howard 2007-12-12 21:03:29 UTC
(In reply to comment #1)
> Reopen with emerge --info.

OK, will do. Guess knowing the bash and baselayout versions might be useful. Sorry about that:

Portage 2.1.4_rc9 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.7-r0, 2.6.23-gentoo-r3 x86_64)
System uname: 2.6.23-gentoo-r3 x86_64 Intel(R) Core(TM)2 Quad CPU @ 2.40GHz
Timestamp of tree: Wed, 12 Dec 2007 16:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -msse3 -ftracer -fweb -frename-registers"
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/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 -O2 -pipe -fomit-frame-pointer -msse3 -ftracer -fweb -frename-registers"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks metadata-transfer multilib-strict parallel-fetch prelink sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
LINGUAS="en en_US"
PORTAGE_RSYNC_EXTRA_OPTS="--progress --partial --verbose"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
USE="X a52 aac acl acpi alsa amd64 apm arts audiofile bash-completion berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr cracklib crypt cscope ctype cups curl dbus directfb doc dri dv dvd dvdr dvdread encode evo exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm ggi gif gnutls gphoto2 gpm gtk hal iconv idn imagemagick imlib ipv6 jack java javascript joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kpathsea lcms lesstif libsamplerate lm_sensors lzo mad matroska midi mikmod mmap mmx mng mp3 mp4 mpeg mplayer mudflap musepack ncurses nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp pam pango pcre pdf perl plotutils png posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection scanner sdl session shorten sndfile source sox spell sse sse2 ssl svg szip tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 verbose vim-syntax vorbis wavpack wmf xcb xine xml xorg xosd xpm xscreensaver xv xvid 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard linuxinput mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="i810"
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-12 21:06:15 UTC
@maintainers - Once again, please grow yourself a bugzilla alias that's not a huge PITA to assign.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-08 19:39:19 UTC
Fixed in .37

*** This bug has been marked as a duplicate of bug 214194 ***