Bug#495279: debian-installer: unable to abort

2008-08-15 Thread Adrian Bridgett
Package: debian-installer
Version: lenny-beta2
Severity: wishlist

I repacked the initrd to add the broadcom firmware files (see #492878)
but must have stuffed something up as when I netbooted it failed to
load any modules.

However now any menu item I pick - including "Abort the installation"
says:

Installation step failed
An installation step failed. You can try to run the failing item
again from the menu, or skip it and choose something else. The
failing step is: Abort the installation

It would be nice to have an emergency "reboot" option - this is a
remote machine so I can't just hit the off switch (and the BMC isn't
responding either :-().

Adrian
-- 
Email: [EMAIL PROTECTED]  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#495279: debian-installer: unable to abort

2008-08-17 Thread Adrian Bridgett
On Sun, Aug 17, 2008 at 00:16:49 +0200 (+0200), Jérémy Bobbio wrote:
> Could you check your dest/MANIFEST.udebs file to see which version of
> rootskel you have built in the initrd?

I grabbed the netboot images from
http://www.debian.org/devel/debian-installer/ on Friday 15th August, I
then unpacked the initrd, added the firmware images and repacked the
initrd (find . | xargs cpio  -o -H newc | gzip -c > initrd).  I can't
see what I did wrong in the initrd repacking but I presume I must have
broken it somehow (maybe I managed to repack an older initrd - perhaps
I mistakenly repacked etch's initrd with lenny's kernel).

> I have noticed a similar issue with the currently UNRELEASED version,
> see: http://lists.debian.org/debian-boot/2008/08/msg00451.html

I do use preseeding, but I haven't set that option.

Thanks,

Adrian
-- 
Email: [EMAIL PROTECTED]  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#495279: debian-installer: unable to abort

2008-08-17 Thread Adrian Bridgett
On Sun, Aug 17, 2008 at 10:04:57 +0200 (+0200), Jérémy Bobbio wrote:
> You could you please look if you see anything wrong in the syslog.
> Eventually, you can add "set -x" to:
>  * /var/lib/dpkg/info/di-utils-reboot.postinst
>  * /lib/debian-installer/exit
>  * /lib/debian-installer/exit-command

I can't do _anything_ from the menu I'm afraid and it's a remote box
with only serial console access so I can't swap VT :(  Any option I
pick errors (which by itself is probably fine and completely my fault
AFAIK).  The problem is that if the menu system is broken (say part of
the install process wiped / completely for example) then you get stuck
and can't "abort the installation" since that has several dependencies.

I'll try and reproduce on a local box to dig a bit deeper.

Thanks,

Adrian
-- 
Email: [EMAIL PROTECTED]  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



debconf hangs during sarge/etch install

2006-05-01 Thread Adrian Bridgett
Hi guys, 

I've got an automatic install (PXE, preseed) working nicely on sarge,
however I need to use a later kernel (network card and SATA controller).

So I've used Kenshi Muto's excellent backports and things are _mostly_
working.  However in the preseed/late-command section I install some
extra packages and this is hanging/failing handling the debconf
commands in postinsts (and anywhere else).

Typically I'm seeing messages like this:

"/tmp/ssh.config.307932: line 42: 3: Bad file descriptor"

I've tried various things:
a) upgrading debconf (to 1.4.72, then 1.5.0)
b) setting LANG to C, en_GB.UTF-8 (bug 355251 - fixed in debconf 1.5.0)
c) DEBIAN_FRONTEND=noninteractive
d) removing /etc/apt/apt.conf.d/70debconf
e) removing a high level redirect I had (to save the output of the
scripts)

I thought I'd ask the experts instead of stabbing around in the dark.
This used to work okay, but used to be a base-config/late_command
(which doesn't exist anymore).

I can reproduce this at the command line by waiting for the hang, then
killing off the "sh /tmp/ssh.config.307932 configure" command (my
script then does a sleep so I can debug the failure).

If I then set both  DEBIAN_HAS_FRONTEND=1 and DEBCONF_REDIR=1 then I
see the same behaviour.  If I unset both, ssh installs fine.

I realise it won't be inheriting the parent FDs, but hopefully it's a
useful clue.

Many thanks,

Adrian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: debconf hangs during sarge/etch install

2006-05-01 Thread Adrian Bridgett
On Mon, May  1, 2006 at 12:37:11 +0200 (+0200), Frans Pop wrote:
> On Monday 01 May 2006 11:59, Adrian Bridgett wrote:
> > So I've used Kenshi Muto's excellent backports and things are _mostly_
> > working.  However in the preseed/late-command section I install some
> > extra packages and this is hanging/failing handling the debconf
> > commands in postinsts (and anywhere else).
> 
> How exactly do you install the extra packages?
> Please provide the full late-command line (and script if you use one).

preseed/late_command is set to:
wget $(debconf-get preseed/url).combined -O /target/tmp/combined;
chroot /target sh -x /tmp/combined > /target/var/log/combined.log 2>&1

(I've also tried omitting the redirection but that didn't help)

The script just does:
upon_exit()
{
  rc=$?
  if [ "$rc" -ne 0 ]; then
echo "PANIC - something has gone wrong (rc=$rc)"
sleep 3600
  fi
  exit $rc
}
trap upon_exit EXIT 
apt-get -y install ssh

Someday I'll do this more sensibly (custom debootstrap scripts perhaps).

.deb packages upgraded from sarge to etch:
 - linux-image-2.6.15-1
 - debconf, debconf-i18n - 1.50
 - module-init-tools, libklibc, lsb-base, klibc-utils, initramfs-tools, udev
   (backports from Kenshi Muto)
 - busybox-cvs installed (wasn't used before, but needed by
   initramfs-tools)

.udeb files upgraded:
 - sata-modules, md-modules, reiserfs-modules
 - libc6, base-installer (1.56), debootstrap (0.3.3)

Thanks,

Adrian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: debconf hangs during sarge/etch install

2006-05-01 Thread Adrian Bridgett
On Mon, May  1, 2006 at 13:57:31 +0200 (+0200), Frans Pop wrote:
> On Monday 01 May 2006 13:20, Adrian Bridgett wrote:
> > preseed/late_command is set to:
> > wget $(debconf-get preseed/url).combined -O /target/tmp/combined;
> > chroot /target sh -x /tmp/combined > /target/var/log/combined.log 2>&1
> 
> Try setting preseed/late_command to "apt-install ssh" instead.

That's worked great :-)  The late_command I have does a bit
more stuff (removes some packages I don't want - e.g ppp*, sets
sources.list) 

I've spent hours trying different things and failing - many, many
thanks!  Time to restructure my scripts now...

Adrian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#495279: debian-installer: unable to abort

2008-09-16 Thread Adrian Bridgett
On Tue, Sep 16, 2008 at 16:47:45 +0200 (+0200), Jérémy Bobbio wrote:
> On Sun, Aug 17, 2008 at 09:36:39AM +0100, Adrian Bridgett wrote:
> > I'll try and reproduce on a local box to dig a bit deeper.
> 
> Have you had the chance to do so?  Otherwise, I would be inclined to
> close this bug report.

I've not I'm afraid - I don't think I'm going to be able to find the
time either :-(

Adrian
-- 
Email: [EMAIL PROTECTED]  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#504753: debian-installer: autodetect correct network card [PATCH]

2008-11-06 Thread Adrian Bridgett
Package: debian-installer

using PXElinux, if you add "IPAPPEND=3" in the pxelinux.cfg,
/proc/cmdline will contain the boot adapter's MAC address.

Using this we can automatically detect which card the box PXEbooted
from.  This removes the need for us to hardcode eth0 on some servers,
eth1 on others, eth5 on yet others.

I use the attached script (/bin/set-bootif) run from
/lib/debian-installer-startup.d/S32set-bootif:
#!/bin/sh
/bin/set-bootif


Adrian
-- 
Email: [EMAIL PROTECTED]  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org
#!/bin/sh
# if PXELINUX has IPAPPEND set, use that MAC address
# written by Adrian Bridgett from code in d-i/bin/env2debconf

export DEBIAN_FRONTEND=none
. /usr/share/debconf/confmodule
bootif=`sed 's/.*BOOTIF=\([-a-z0-9]*\).*/\1/; t; d' /proc/cmdline`
if [ "$bootif" ]; then
  interface_found=""
  # bootif is 01-00-19-b9-e1-c6-94, convert to MAC
  mac=${bootif#01-}
  mac=`echo $mac | sed 's/-/:/g'`
  echo "Found bootif $bootif, looking for MAC $mac"
  cd /sys/class/net
  for interface in *; do
if [ `cat $interface/address` = "$mac" ]; then
  echo "Found matching interface $interface"
  interface_found=$interface
  db_set netcfg/choose_interface $interface
  # must mark question as seen otherwise you are reprompted
  db_fset netcfg/choose_interface seen true
fi
  done
  if [ ! "$interface_found" ]; then
echo "No matching interface for MAC $mac"
  fi
fi



Bug#492878: lenny installer -dosen't detect Broadcom ethernet adapter

2008-11-06 Thread Adrian Bridgett
I added the firmware from the firmware-bnx2 package into the initrd
(we pxeboot the servers) to fix this FWIW.

You can't download it via udeb since it could be the network adapter
you are trying to use!

Adrian
-- 
Email: [EMAIL PROTECTED]  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#504753: debian-installer: autodetect correct network card [PATCH]

2008-11-08 Thread Adrian Bridgett
On Sat, Nov  8, 2008 at 09:57:26 +0100 (+0100), Guido Günther wrote:
> On Thu, Nov 06, 2008 at 08:49:49PM +0000, Adrian Bridgett wrote:
> >   db_set netcfg/choose_interface $interface
> >   # must mark question as seen otherwise you are reprompted
> >   db_fset netcfg/choose_interface seen true
> Isn't prompting o.k. here? Preselecting the correnct interface and
> giving a message that this was autodetected might be better, because
> folks might want to choose a different interface.

Good point.  In my case this was part of an automated install so
prompting would be bad.  However I suppose the ideal would be to use
this to try and autodetect the right interface and also provide a way
to automatically accept it _if_ required.

Adrian
-- 
Email: [EMAIL PROTECTED]  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#425397: tasksel/pkgsel causing Etch netboot install to hang indefinitely

2007-07-05 Thread Adrian Bridgett
I've hit this exact issue (nice workaround with the "echo" trick) and
been doing some more debug.   With _loads_ of debug the bug
dissappeared :-(   But I have now managed to see where the race is.

When the hang occurs, the last few things that debconf does (booted
with "install DEBCONF_DEBUG=5" with additional "warn" stuck in:
(I can see dpkg-preconfigure calling "make_frontend()")
read "PROGRESS SET 18"
send "0 OK"
read "CAPB"
send "0 multiselect escape multiselect backup progresscancel"
recv "SUBST debconf-apt-progress/info DESCRIPTION Retrieving file 84 of 84"
send "0"   (no OK FWIW)
recv "PROGRESS INFO deconf-apt-progress/info"
send "0 OK"
(hang occurs)


With more debug, it didn't hang, but have a look at the message
received this time:
read "PROGRESS SET 18"
send "0 OK"

recv "SUBST debconf-apt-progress/info DESCRIPTION Retrieving file 84 of 84"
send "0"   (no OK FWIW)
recv "PROGRESS INFO deconf-apt-progress/info"
send "0 OK"
(
  I can see dpkg-preconfigure calling "make_frontend()"
  ...
  calls Debconf::FrontEnd::Passthrough->new()
)
read "CAPB"
send "0 multiselect escape multiselect backup progresscancel"
read "TITLE"
...


So the hang occurs when dpkg-preconfigure calls make_frontend _before_
the last PROGRESS_INFO has occured).

I think I'd better leave this to the Debconf guru's now :-)

I have more logs available if they are any help (I suspect not).   I
was doing a CD based install with desktop package deselected (just base
system package selected).

Adrian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#444026: grub-installer: serial console should timeout

2007-09-25 Thread Adrian Bridgett
Package: grub-installer
Version: 1.22
Severity: minor

We have some dell boxes with BIOS set to redirect console output to
serial after boot (that's the default).

When using a proper serial console, this breaks the display (so that
you can't see the grub messages).  This is fair enough.

However, since there is no timeout set, it "hangs" the box at this
point which is suboptimal.  There is an easy fix - specify a timeout
(this is _separate_ from the normal grub timeout option which is also
set FWIW).

By changing the grub config from:
serial --unit=0 --speed=57600 --word=8 --parity=no --stop=1
terminal serial 

to
serial --unit=0 --speed=57600 --word=8 --parity=no --stop=1
terminal --timeout=10 serial 

then the boot continues after 10 seconds.  When the box is remotely
admined this saves considerable hassle :-)

Should just be a couple of extra words in get_serial_console function.

Adrian
-- 
Email: [EMAIL PROTECTED]  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#561074: network-console: starting a shell terminates the connection

2009-12-14 Thread Adrian Bridgett
Package: network-console
Version: 0627 (backports)

I'm using the version from http://kmuto.jp/debian/d-i/ since I'm
installing on a new Dell R410 and it requires 2.6.29 or later.

It's a network preseed install and although I can ssh in and
/bin/network-console runs fine, if I select the option to "Start
shell" then the connection just terminates.  Changing /etc/passwd to
run /bin/sh instead works fine.  I can then run /bin/network-console,
select "start-shell and I am returned to the prompt.

/var/log/syslog states:
sshd[9487]: Accepted password for installer from 10.0.0.1 port 36721 ssh2
sshd[9488]: lastlog_filetype: Couldn't stat /var/log/lastlog: No such
file or directory
sshd[9488]: lastlog_openseek: /var/log/lastlog is not a file or a
directory!

touch()ing the file stops those errors but it still fails to log me in
(even if I stop/start sshd)

Not sure what's going on - is network-console exiting rather than
exec()ing a shell?

Adrian
-- 
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#561074: network-console: starting a shell terminates the connection

2009-12-15 Thread Adrian Bridgett
On Mon, Dec 14, 2009 at 22:42:58 +0100 (+0100), Frans Pop wrote:
> Can you reproduce the issue with a daily built image provided by us [1]?
> It has 2.6.30 as kernel, so should work fine for you. You only have to 
> proceed as far as starting network-console.
> 
> If you cannot, I doubt there's anything wrong with network-console itself.

Thanks, I'll take a look.  For reference it's getting as far as
calling udpkg (in /bin/network-console-menu) which then calls
/var/lib/dpkg/info/di-utils-shell.postinst.  That is getting as far as
running db_input but then I'm kicked out.

Adrian
-- 
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#561074: network-console: starting a shell terminates the connection

2009-12-16 Thread Adrian Bridgett
I'm now using the daily images (20091216) as you suggested (I swapped
to backport when I hit a console hang issue (fixed by vga=...) and
hadn't swapped back.

Same thing I'm afraid - I've added in "set -x" and this is what I see
(echo's I've added):
(process:21240): + echo calling backup
(process:21240): + db_capb backup
(process:21240): + _db_cmd CAPB backup
(process:21240): + IFS=  printf %s\n CAPB backup
(process:21240): + IFS=
(process:21240):  read -r _db_internal_line
(process:21240): + RET=multiselect backup progresscancel align plugin-terminal
(process:21240): + return 0
(process:21240): + echo calling input
(process:21240): + db_input high di-utils-shell/do-shell
(process:21240): + _db_cmd INPUT high di-utils-shell/do-shell
(process:21240): + IFS=  printf %s\n INPUT high di-utils-shell/do-shell
(process:21240): + IFS=
(process:21240):  read -r _db_internal_line
(process:21240): + RET=30 question skipped
(process:21240): + return 30
Connection to 10.5.2.89 closed.

I wonder if it's because I'm preseeding and have set debconf to
critical only...  Seems wierd that db_input bails, but then it's been
a while since I've done debconf usage.

I'm currently preseeding this lot (lots of other things but these are
the only di-* or console bits.

d-i anna/choose_modules string network-console
d-i network-console/password password r00tme
d-i network-console/password-again password r00tme
d-i finish-install/keep-consoles boolean true

# don't halt progress by telling us sshd has started
d-i network-console/start note seen
# trying to get nc working (tried with this commented and uncommented)
# this should skip the "about to start a shell"
#d-i di-utils-shell/do-shell note seen

Changing the db_input line from "high" to "critical" seemed to do the
trick :-)

Adrian
-- 
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#561074: network-console: starting a shell terminates the connection

2009-12-16 Thread Adrian Bridgett
On Wed, Dec 16, 2009 at 17:48:26 +0100 (+0100), Frans Pop wrote:
[snip]
> It's a bit of a corner case because people don't normally log into 
> preseeded installs.

I'm debugging :-)

> Thanks for providing the info to track it down.

A pleasure, thanks for the pointers on what to do to assist!

Adrian
-- 
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org