tis 2003-07-29 klockan 11.54 skrev Petter Reinholdtsen: > > How should I implement this code (currently using perl and debconf) if > I want it to work with cdebconf? > > #!/usr/bin/perl -w > use strict; > use warnings; > use Debconf::Db; > use Debconf::Template; > use Debconf::Question; > Debconf::Db->load; > my $qi = Debconf::Question->iterator; > while (my $q = $qi->iterate) > { > my ($name, $type, $value) = ($q->name, $q->type, $q->value); > $value = "[undef]" if (! defined $value || "" eq $value); > print "$name $type $value\n"; > } > exit 0; > > Anyone know? I want to pass on some debconf values from d-i/cdebconf > to debconf in the installed system. Are you sure it's a good idea to simply copy everything to the target system? Wouldn't it be better to only copy specific things, in a smart way? Preferrably modular so any udeb can do it (via prebaseconfig?) -- Martin Sjögren martin@strakt.com Phone: +46 (0)31 7490880 Cell: +46 (0)739 169191 GPG key: http://www.strakt.com/~martin/gpg.html
Attachment:
signature.asc
Description: PGP signature