[Debconf-devel] Problems preseeding a package at install time - help?
Jo Shields
directhex at apebox.org
Mon Apr 21 09:25:24 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 21/04/14 01:31, Cyril Brulebois wrote:
> Jo Shields <directhex at apebox.org> (2014-04-20):
>> I want to preseed a preinst value used by the package "libfglrx",
>> which is installed via a dependency from "fglrx-driver" which is
>> listed in .disk/base_include
>>
>> libfglrx.preinst includes the check:
>>
>> # allow to disable the check via preseeding db_get
>> fglrx-driver/check-for-unsupported-gpu test "$RET" = "true" ||
>> return 0
>>
>> And on an installed system, debconf-get-selections includes:
>>
>> libfglrx fglrx-driver/check-for-unsupported-gpu boolean true
>>
>> which matches the default value defined in libfglrx.templates:
>>
>> Template: fglrx-driver/check-for-unsupported-gpu Type: boolean
>> Default: true
>>
>> What I want to do is preseed this value as false, to disable the
>> check. I have added to my preseed file:
>>
>> libfglrx fglrx-driver/check-for-unsupported-gpu boolean false
>
> I've done that (not installed anything fglrx-ish, just the base
> system) and the installed system has indeed the seen flag and the
> false value for the said setting… Installing libfglrx afterwards
> also keeps said settings.
This was a much more helpful clue than you'd think.
Apparently, preseeding does not work for packages installed by
debootstrap - and .disk/base_include passes package lists to
debootstrap for it to install. By removing those entries from
.disk/base_include, and installing them later via d-i pkgsel/include,
then preseeding works as intended.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBCAAGBQJTVOQEAAoJEMkPnLkOH60MjF4IAKoQp6TiCj/sNHlm/1ojlvgt
FuXHY1ezHQgHXuCyXQ3HuTlkTiF8bQ864fTvcqKmEKFECYBsHt01spZGqECarN1b
k3kvMo692BdG6/Kh2t+krhu+9CmuWgVpV7O2lp2lDrQ/Jv92oKI6jKTe+UyaeyI8
Pr6UA784mE+Q/RNB3z0UGhsYl/td58MVS8j0pt7Md2iXbUc0dMVEttKU6NfAEcoH
adtvKsNaKphcgGSqQYPsOBOkVO2b9DcoA6CGsi9DYXTjGn21rVLZ2mvC2KSQBq7p
RkOB3CwZnZ4PMm/XqhBgLRIUtM3ETAR7JnpAOFplB/K3dJIkp0bYI09lI3chzvI=
=WECM
-----END PGP SIGNATURE-----
More information about the Debconf-devel
mailing list