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

Re: Stopping d-i pulling in virtualbox-ose-guest packages



On 1 March 2011 16:11, Joey Hess <joeyh@debian.org> wrote:
> Jonathan Matthews wrote:
>> I can't find a way of getting squeeze's (i386) netinst to install
>> inside virtualbox without pulling in 3 virtualbox-ose-guest-*
>> packages:
>
> So, these are pulled in by the discover package, particularly by
> discover-pkginstall.
>
> I don't see any way to disable it by preseeding. While
> discover uses the discover/install_hw_packages debconf question,
> it uses it in a way that ignores preseeding. (This is easily a bug.)

Thanks for this - appreciated. I'll file a bug for this behaviour.

Could anyone comment on how a request for a discover blacklist debconf
question would be viewed? I'm thinking that it might be productive to
be able to communicate "let discover do what it likes, as hwdiscovery
is its forte, but I *know* I don't want to install anything matching
$REGEX".

> The only option I see for now is to use preseed/early_command to
> rm /usr/lib/pre-pkgsel.d/20install-hwpackages

For the list archives: this worked under 6.0.0 (tested on i386) but
now, post-6.0.1 release, on both 64- and 32-bit 6.0.0 PXE installers
(with subsequent packages pulled during the install from a
(presumably) updated 6.0.1 mirror) it fails to have the desired
affect. It appears that preseed/early_command may be running before
the installer has created /usr/lib/pre-pkgsel.d/20install-hwpackages.
I'm not sure if that's a bug.  The workaround I'm using successfully
at the moment is:

d-i preseed/early_command string \
  echo -e '#! /bin/sh\necho >/usr/lib/pre-pkgsel.d/20install-hwpackages' \
  >/usr/lib/pre-pkgsel.d/19remove-install-hwpackages; \
  chmod 755 /usr/lib/pre-pkgsel.d/19remove-install-hwpackages

Ugly, but it works.

Regards,
Jonathan
-- 
Jonathan Matthews
London, UK
http://www.jpluscplusm.com/contact.html


Reply to: