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

Re: Writing udebs



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael S. Peek wrote:
> Hello again gurus,
> 
> I'm attempting to update a couple of small udebs to work under etch and
> I've run into a snag.  For some reason I seem to be killing
> /sbin/debian-installer with my udebs and I don't know what's causing it.
> 
> As an example, here's one of the udebs in question: multi-netcfg.  It's
> run after the ethernet hardware has been discovered, but before netcfg. 
> It's sole purpose is to try to find a preseed file who's filename
> matches the hardware ethernet address of (any of) the newly-discovered
> ethernet cards found on the system.  The postinst script is as follows:
> 
>    else
>        log "No such file or directory found"
>    fi
> done
> 
> db_stop

^^^ here is the problem! :-) don't run db_stop

> ------------------------------------------------------------
> 
> The script itself does it's job -- it's able to find and load the
> correct preseed file for me:
> 
> Sep 28 13:35:42 multi-netcfg: Searching for network card(s)...
> Sep 28 13:35:42 multi-netcfg: Auto-NetCfg Dir: /cdrom/preseed/netcfg
> Sep 28 13:35:42 multi-netcfg: Found device: eth0 (HWaddr:
> 00:30:48:77:D8:A2)
> Sep 28 13:35:42 multi-netcfg: Searching for File or Dir:
> /cdrom/preseed/netcfg/00-30-48-77-D8-A2
> Sep 28 13:35:42 multi-netcfg: Found file
> Sep 28 13:35:42 multi-netcfg: successfully loaded preseed file from
> /cdrom/preseed/netcfg/00-30-48-77-D8-A2
> Sep 28 13:35:42 multi-netcfg: Found device: eth1 (HWaddr:
> 00:30:48:77:D8:A3)
> Sep 28 13:35:42 multi-netcfg: Searching for File or Dir:
> /cdrom/preseed/netcfg/00-30-48-77-D8-A3
> Sep 28 13:35:42 multi-netcfg: No such file or directory found
> 
> The problem comes immediately after:
> 
> Sep 28 13:35:42 main-menu[2429]: INFO: Priority changed externally,
> setting main-menu default to 'medium' ()
> Sep 28 13:35:43 main-menu[2429]: INFO: Falling back to the package
> description for kbd-chooser
> Sep 28 13:35:43 main-menu[2429]: WARNING **: Internal error! Cannot find
> "ok" in menu.

> I'm assuming that it's my own inexperience with Debian udebs that's
> causing the problem, and I'm hoping that someone out there will be able
> to spot my mistake straight away.
> 

I did, it was same mistake I did...  see the patch in #385150

- --
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFHN9iY8Chqv3NRNoRAqNpAJ4gdsyVl1rC5y+TLBuXU0GlHodx9wCcDkpo
7g5FB+U/JJu7B2bJ2Y6cQPM=
=mrcd
-----END PGP SIGNATURE-----



Reply to: