Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On /var/log/installer/cdebconf/questions.dat i says this:

Name: preseed/late_command
Template: preseed/late_command
Value: wget http://suportrecerca.barcelonamedia.org/Utilitats/preseed/postscript/post.sh \ -O /usr/sbin/post.sh; chmod 777 /usr/sbin/post.sh; /usr/sbin/post.sh
Owners: d-i
Flags: seen

I can download the post.sh script and looks like this:

#!/bin/sh
### postscript de veritat
#TODO
######
#
# config puppet
# VAS (puppet?)
# snmp (puppet?)
apt-get clean
apt-get update
apt-get -y install htop vim
apt-get autoremove
# and more stuff that by now is not related

But when I try to exec htop or vim it's not installed. Also the script must create some files but they do not appear.

I've been looking around and I'm not able to found a good aproach to this problem.

Any hits or suggestion?

many thanks.

share|improve this question
    
In an unrelated note: Just use d-i pkgsel/include string htop vim in your preseed file instead of installing the packages in your preseed/late_command. –  joschi Jun 25 '10 at 16:20
    
Thanks but I need to download some scripts and let them on special places. It's corporate stuff and they are not on the debian repos. –  marc.riera Jun 28 '10 at 13:47

1 Answer 1

up vote 2 down vote accepted

This doesn't work due to changes in debian-installer. Read the current docs, particularly the sections on custom commands and extra packages.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.