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

Bug 100029

Summary: Some config files in /etc/ replaced by symbolic links to themselves
Product: Gentoo Linux Reporter: Marko Daniel <marko>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: VERIFIED NEEDINFO    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marko Daniel 2005-07-23 06:51:58 UTC
Following a world upgrade, some config files in /etc/ were replaced by symbolic
links to themselves. This includes /etc/resolv.conf, /etc/yp.conf, /etc/ntp.conf
and /etc/net.eth0.

Reproducible: Always
Steps to Reproduce:
emerge -uav world
dispatch-conf
reboot
Actual Results:  
Above files were replaced by symlinks to themselves, rendering them useless.

Expected Results:  
Update changed config files as normal.
Comment 1 SpanKY gentoo-dev 2005-07-23 22:44:03 UTC
missing helpful info here ...

no emerge info
/etc/net.eth0 should not exist
what version of baselayout
if you sync and re-emerge baselayout does it work
do you use dispatch-conf
Comment 2 Marko Daniel 2005-07-24 11:45:26 UTC
1) emerge info 
$ emerge info 
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 
2.6.12-gentoo-r6 i686) 
================================================================= 
System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz 
Gentoo Base System version 1.6.13 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] 
ccache version 2.3 [disabled] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.11 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=pentium4 -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium4 -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/" 
LANG="en_GB.UTF-8" 
LC_ALL="en_GB.UTF-8" 
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="x86 X Xaw3d aalib acl acpi acpi4linux alsa apache2 apm arts artswrappersuid 
auctex avi berkdb bitmap-fonts bonobo cairo cdr cjk crypt cups curl dga doc dv dvd 
dvdr eds emacs emacs-w3 emboss encode evo faad fam fbcon ffmpeg flac 
foomaticdb fortran gd gdbm gif gimp gimpprint gnome gphoto2 gpm gstreamer gtk 
gtk2 gtkhtml imagemagick imap imlib immqt-bc java javascript jpeg junit kde 
kdeenablefinal ldap leim libcaca libg++ libwww mad maildir mbox mdb mikmod 
mmx mmxext mng motif mozilla mozsvg mp3 mpeg msn mule mysql mysqli nas 
ncurses neXt network nfs nls nptl nvidia ogg oggvorbis opengl oss pam pda pdflib 
perl plotutils png ppds python qt quicktime readline real samba sasl scanner sdl 
slang slp socks5 sox spell sse sse2 ssl stroke subtitles subversion svg svga svgz 
tcltk tcpd tetex theora tidy tiff transcode truetype truetype-fonts type1-fonts 
unicode usb v4l v4l2 vorbis webdav wifi win32codecs winbind wmf xchattext xface 
xine xml xml2 xmlrpc xmms xpm xslt xv xvid xvmc yahoo yaz zeroconf zlib 
userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS 
 
2) /etc/net.eth0 was a typo. Should have been /etc/init.d/net.eth0, which should of 
course be a symlink to net.lo, not to itself. 
 
3) $ qpkg -I -v baselayout 
sys-apps/baselayout-1.11.13 * 
 
4) As stated in steps to reproduce, I do. 
 
I re-emerged baselayout and did dispatch-conf but this did not solve the problem. I 
manually resolved it by searching for files that were symlinks to themselves and 
restored them to sane values. (I have two other similar systems running gentoo and 
copied over files. There were no backups for any of the mangled ones 
in /etc/config-archive/.  
 
It is a strange bug which did not occur in my other two gentoo systems.