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:

### postscript de veritat
# 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.

  • 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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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