[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cleaning up the d-i logs



On Fri, May 12, 2006 at 05:32:32PM -0500, Joey Hess wrote:
> I want to clean up the d-i syslog so it's more readable. Right now
> there's lots of junk which makes it hard to trace problems. I think it
> makes sense to continue having d-i output debug type information in
> areas where it's still useful for debugging problems users might report
> during an install, and remove debug information for things that have
> settled down.
> 
> I've made all the changes I mention making locally but haven't committed
> them, so speak up if some debugging I propose removing is useful.
> 
> > May  8 11:02:34 syslogd started: BusyBox v1.01 (Debian 1:1.01-4)
> > May  8 11:02:34 kernel: klogd started: BusyBox v1.01 (Debian 1:1.01-4)
> > May  8 11:02:35 init: ^MStarting pid 3200, console /dev/vc/1: '/sbin/debian-installer'
> > May  8 11:02:35 init: ^MStarting pid 3208, console /dev/vc/3: '/usr/bin/tail'
> > May  8 11:02:35 init: ^MStarting pid 3211, console /dev/vc/4: '/usr/bin/tail'
> 
> All of the above is too minor to worry about.

Okay, I read it as "they stay".  Great, those who use the d-i framework
for other proposes, will like to see their change on /etc/inittab.

> 
> > May  8 11:02:35 main-menu[3264]: DEBUG: Executing /lib/main-menu.d/10rescue 
> > May  8 11:02:35 main-menu[3264]: DEBUG: Executing /lib/main-menu.d/5lowmem 
> 
> These debugs seem unnecessary.

Please keep "Executing /lib/main/menu.d/2modification" messages.

> 
   <snip/> 
> > May  8 11:02:38 kbd-chooser[4071]: INFO: Setting debian-installer/serial-console to false 
> > May  8 11:02:38 kbd-chooser[4071]: INFO: Setting debian-installer/uml-console to false 
> 
> Removed, debconf debugging can be used to show the same thing.

Note to myself: take some time to check debconf debugging options.

     <snip/> 
> > May  8 11:02:41 hw-detect: Detected module 'via82cxxx' for 'IDE chipset support'
> > May  8 11:02:41 hw-detect: Trying to load module 'via82cxxx'
> > May  8 11:02:41 hw-detect: insmod /lib/modules/2.6.15-1-486/kernel/drivers/ide/pci/via82cxxx.ko 
> 
> So it does this for every module. The first line is useful (sometimes).
> The second line is redundant, removed. The third line is modprobe -v
> output. Not sure why we run it -v..

Just guessing: showing module _parameters_

  <snip/>
> > May  8 11:02:46 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-i386/Packages in /cdrom/dists/etch/Release.
> > May  8 11:02:46 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-i386/Packages.gz in /cdrom/dists/etch/Release.
> 
> Not sure why d-i is looking for contrib udebs, or why the lists arn't
> there..
> 
> > May  8 11:02:46 anna[11485]: DEBUG: install hw-detect, enhances installed packages hw-detect 
> > May  8 11:02:46 anna[11485]: DEBUG: install apt-mirror-setup, queued by anna-install 
> > May  8 11:02:46 anna[11485]: DEBUG: install apt-setup-udeb, priority >= standard 
> > May  8 11:02:46 anna[11485]: DEBUG: install base-installer, priority >= standard 
> > May  8 11:02:46 anna[11485]: DEBUG: ask for choose-mirror, is menu item 
> > May  8 11:02:46 anna[11485]: DEBUG: install clock-setup, priority >= standard 
> > May  8 11:02:46 anna[11485]: DEBUG: ask for crc-modules-2.6.15-1-486-di, matches kernel 
> 
> This goes on for several pages. I'm unsure whether to keep it or not,
> this is very useful for debugging issues when modifying the installer,
> and pretty useless the rest of the time.

What about giving anna a configuration file option "debug level" ?
> 
> > May  8 11:03:04 dhclient: Internet Software Consortium DHCP Client 2.0pl5
  [ more DHCP client output ]
> > May  8 11:03:14 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
> 
> I'd love to lose the banner, but the rest we clearly want in the log.
> 
> > May  8 11:03:25 main-menu[3264]: (process:19260): Internet Software Consortium DHCP Client 2.0pl5 
  [ more DHCP client output ]
> > May  8 11:03:25 main-menu[3264]: (process:19260): DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11 
> 
> But not twice! This is main-menu logging stderr that got through to it.
> dhclient really shouldn't sent that to stderr..

I'll file a wishlist BR for it.


 <snip/>
> > May  8 11:04:00 partman:   No matching physical volumes found
> > May  8 11:04:00 partman: No volume groups found
> > May  8 11:04:00 partman: 
> > May  8 11:04:00 partman:   Reading all physical volumes.  This may take a while...
> 
> Should be /dev/nulled, if it can be found..
> 
  <snip/>
> > May  8 11:05:46 base-installer: info: Running /usr/lib/base-installer.d/01save-logs
> > May  8 11:05:46 base-installer: info: Running /usr/lib/base-installer.d/40netcfg
> 
> Think it's ok to remove these, doesn't seem highly useful.

Seeing a 
Mar 11 11:03:41 base-installer: info: Running /usr/lib/base-installer.d/ 99for_my_site
will be appreciated.

    <snip/> 
> > May  8 11:07:26 base-installer: info: Running post-base-installation hooks
> > May  8 11:07:26 base-installer: info: Running /usr/lib/post-base-installer.d/05localechooser
> 
> Removed.

Please revert it (or allow me to revert it)

Post-base-installer is where Custom Debian Distribution work can be
expected. CDD people will like to see the information that
base-installer can provide, at least I expect that I will be happy
with the info.


> see shy jo


Cheers
Geert Stappers



Reply to: