Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94128 - /etc/ntp.conf overwritten with broken defaults every reboot - similar to bug #29370 but no dhcp installed
Summary: /etc/ntp.conf overwritten with broken defaults every reboot - similar to bug ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 17:06 UTC by Triffid Hunter
Modified: 2005-06-22 19:42 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 Triffid Hunter 2005-05-26 17:06:17 UTC
/etc/ntp.conf is replaced with a (very!) broken default on every reboot. seems 
to be ntp's packaged example conf.

similar to http://bugs.gentoo.org/show_bug.cgi?id=29370, but i don't have dhcp 
installed, let alone running.

I haven't yet managed to work out what is overwriting this file.

Reproducible: Always
Steps to Reproduce:
1. emerge -avt ntp
2. configure /etc/ntp.conf
3. reboot

Actual Results:  
/etc/ntp.conf replaced with something that looks like ntp's bundled example


Expected Results:  
NOT replace a working config with a broken one with neither permission nor even 
notification...

~ # emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.5-r0, 2.6.
11-gentoo-r9.peladrine i686)
=================================================================
System uname: 2.6.11-gentoo-r9.peladrine i686 AMD Duron(tm) Processor
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
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.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS=" ftp://mirror.isp.net.au/pub/gentoo ftp://mirror.pacific.net.au/
linux/Gentoo ftp://mirror.aarnet.edu.au/pub/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow X509 a52 aac acpi alsa apache2 apm atm avi berkdb bind-mysql bitmap-
fonts bzlib crypt curl dba dedicated divx4linux djbfft dvd emboss encode erandom 
extensions fastcgi flatfile foomaticdb fortran ftp gd gdbm gif gpm gtk2 imlib 
inifile ithreads java jikes jpeg junit libg++ libwww lzo mad mbox memlimit 
mikmod mime mjpeg mmap mmx mod_perl mod_php motif mp3 mpeg mpm-leader mpm-
peruser mpm-prefork mpm-threadpool mpm-worker mysql ncurses network nls nocd 
nptl offensive ogg oggvorbis oss pam pam_chroot pam_console pam_timestamp pcre 
pdflib perl php png posix python readline samba shared sharedext sharedmem 
sockets spell ssl tcpd threads tokenizer truetype-fonts type1-fonts usb vhosts 
vorbis x86 xml xml2 xmlrpc xsl xvid yv12 zlib userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

~ # rc-update show
           alsasound |      default
             apache2 |      default
            bootmisc | boot
             bttrack |
             checkfs | boot
           checkroot | boot
               clock | boot
            coldplug | boot
         consolefont | boot
         crypto-loop |
               cupsd |
             distccd |      default
          domainname |      default
            firewall |      default
                 gpm |      default
      hatred-eggdrop |      default
              hdparm |      default
            hostname | boot
             hotplug | boot
            iptables |
             keymaps | boot
          lm_sensors |      default
               local |      default nonetwork
          localmount | boot
             midentd |
             modules | boot
               mysql |
               named |      default
            net.eth0 |      default
              net.lo | boot
            netmount |      default
                 nfs |
            nfsmount |
                nscd |
          ntp-client |      default
                ntpd |      default
             numlock |
             pamsmbd |
              popa3d |      default
             portmap |
             postfix |      default
         powertweakd |
                psad |
             pwcheck |
           rmnologin | boot
  route_fallover_mon |
              rsyncd |
               samba |      default
              serial | boot
              shaper |      default
                sshd |      default
           syslog-ng |      default
          testkernel |
                 tor |
               ulogd |
               upnpd |      default
             urandom | boot
          vixie-cron |      default
              vsftpd |
                 xfs |
              xinetd |      default

this is a server, so nothing other than the above runs on boot.
Comment 1 SpanKY gentoo-dev 2005-06-22 19:42:43 UTC
you have a lot of services ...

reboot and when grub/lilo pops up, tell it to append 'softlevel=nonetwork' to
the kernel cmdline and see if your /etc/ntp.conf is still screwed up

if it isnt, remove all your services and narrow down what is causing the problem