Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71143 - udev stops shutdown, because tar won't create empty tar-file.
Summary: udev stops shutdown, because tar won't create empty tar-file.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 71142 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-14 04:28 UTC by Florian Loitsch
Modified: 2004-12-13 11:19 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 Florian Loitsch 2004-11-14 04:28:40 UTC
I have a nvidia-card, and hence needed RC_DEVICE_TARBALL="yes" in
my /etc/conf.d/rc. Now that nvidia-devices are created by udev, there exists
no non-udev-device anymore, and the "shutdown"-script will fail:
(line 51 of halt.sh:)
===
# Now only tarball those not created by udev
try tar -jclpf "${device_tarball}" \
    `fgrep -x -v -f "${devices_udev}" < "${devices_real}"`
===
stops the shutdown with the following error-message:
The "tar" command failed with error:
Cowardly refusing to create an empty archive.

The obvious solution is of course to disable RC_DEVICE_TARBALL, but the script
doesn't need to crash. It could test, if there are files to save, and suggest
the removal of the option in the /etc/conf.d/rc.
I'm not a bash-scripter, but I'm thinking of something like:
${tmp} = `fgrep -x -v -f .....`
if [ ${tmp} ] then
  try tar ...
  ...
else
  rm old_tar
  touch new_tar
  echo "You might consider removing the RC_DEVICE_TARBALL in /etc/conf.d/rc"
fi


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




flo@basil ~ $ emerge info 
Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.4.3, 
glibc-2.3.4.20041102-r0, 2.6.8-gentoo-r8 i686) 
================================================================= 
System uname: 2.6.8-gentoo-r8 i686 AMD Athlon(TM) XP 2200+ 
Gentoo Base System version 1.6.6 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.2-r7 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=athlon-xp -mtune=athlon-xp" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=athlon-xp -mtune=athlon-xp" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ 
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="3dnow X alsa apm arts audiofile avi berkdb bitmap-fonts cdparanoia cdr 
cgj crypt cups dga directfb divx4linux doc dvd dvdr encode esd f77 fam flac 
foomaticdb fortran gdbm ggi gif gpm gstreamer gtk2 guile imagemagick imapimlib 
innodb ipv6 jpeg junit kde libg++ libwww mad matroska mikmod mmx motif mozilla 
mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl png python 
quicktime readline samba sdl slang speex spell sse ssl svga tcltktcpd tetex 
theora tiff truetype v4l v4l2 x86 xinerama xml xml2 xmms xv xvid zlib"
Comment 1 Florian Loitsch 2004-11-14 04:30:30 UTC
*** Bug 71142 has been marked as a duplicate of this bug. ***
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-12-13 11:19:46 UTC
Fixed in CVS.