Re: how to install extra packages through proseeding

2004-11-25 Thread Jin Zhao
Christian Perrier wrote:
We need to hunt these bad debconf usage which break d-i automation.
Anyway, you should probably try to set debconf priority to critical,
which will help in avoiding such cases.
 

Actually the debconf/priority was set to critical. Following your 
suggestion I may submit bug reports for libnss-ldap and tripwire about 
the issues.

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


Re: how to install extra packages through proseeding

2004-11-24 Thread Christian Perrier

> So far 99% the installation went well. One interruption is a prompt 
> asking for changing nssswitch.conf, which I have no idea of what answer 
> to give in preseed, since the prompt says "nssswitch.conf can not be 
> automatically managed". The other is tripwire asking for passphrases, 

This is probable a bloody note shown at too hgh priority. Probably
file a bug against the package asking for removal (or priority
lowering) of the note and mention this is debconf abuse.


> even though answers already given in the preseed file.

For tripwire, this is probably because its config script "forgets"
about previous  set value, which is a Bad Thing. Again, file a bug
report against the package.

We need to hunt these bad debconf usage which break d-i automation.

Anyway, you should probably try to set debconf priority to critical,
which will help in avoiding such cases.




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



Re: how to install extra packages through proseeding

2004-11-24 Thread Jin Zhao

I use base-config/late_command for installing extra packages.
 

That's just what I mean "post installation scripting", which is the term 
used in Redhat kickstart.  I made some testings today with the following 
steps.

1. Do a manual aptitude installation of wanted packages
2. Grab /var/log/aptitude and grep those packages names
  grep '\[INSTALL\]' /var/log/aptitude|awk '{print $2}' > aptitude-pkgs
3. Put this package file on a local web server and instert the following 
line into the preseed file.
  base-config base-config/late_commandstring wget 
http://192.168.35.1/aptitude
-pkgs -O /tmp/aptitude-pkgs; cat /tmp/aptitude-pkgs | xargs aptitude -y 
install

4. Grab package installation answers from 'debconf-get-selections' and 
put'em into preseed file. I only used those for Samba, LDAP(libnss-ldap, 
libpam-ladap) and Tripwire.

5. Reboot the machine and do a preseeded install.
So far 99% the installation went well. One interruption is a prompt 
asking for changing nssswitch.conf, which I have no idea of what answer 
to give in preseed, since the prompt says "nssswitch.conf can not be 
automatically managed". The other is tripwire asking for passphrases, 
even though answers already given in the preseed file.

The method I chose seems mostly work,  but I am eager to know if any 
better solutions available. Oringinally I thought directly using apt-get 
might be OK, but eventrually go the aptitude way in hope of putting 
answers in preseed file may work. Actually, using the procedure above, 
tasksel is no longer necessary.

Thanks,
Jin

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


Re: how to install extra packages through proseeding

2004-11-23 Thread Christian Perrier
Quoting Jin Zhao ([EMAIL PROTECTED]):
> This seems to be a dumb question but so far I have not figured it out by 
> searching documents and email lists.
> 
> The preseeding example 
> (http://d-i.alioth.debian.org/manual/en.i386/apcs01.html) only says the 
> following words: "You can also choose to install no tasks, and force the 
> installation of a set of packages in some other way.". I am just 
> wondering what is such a "some other way". Should I do some post-install 
> scripting for this or there exists something configurable in the preseed 
> file?


I use base-config/late_command for installing extra packages.



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