Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I must be missing something obvious. I've taken over the development of a customised Ubuntu installation, which uses the 11.04 Desktop Live ISO with a customised preseed file to make the installation of a new PC completely automatic - build the ISO with the UCK tools, burn it to a DVD, boot a PC from the DVD, go for a nice cup of tea, and come back to a finished installation just waiting for you to click to reboot into the new system.

It all works fine except for this: I cannot get a late_command in the preseed file to run. Everything else in the file works fine - partitioning, choosing packages, creating a user, etc - but the last line of the preseed file:

d-i preseed/late_command string /bin/echo "trying echo" > /var/log/myfile

...doesn't happen. I've tried every possible combination of in-target and prefixing /target/ to my paths. I've SSHed to the machine while the automated installation is running and verified that my output paths exist and are writable. I've checked the kernel command line to make sure the right preseed file is being used. My late_command command just sits there, refusing to be run. We've been sitting here staring at each other, for quite some time now. My brain has started dribbling out my ears, and I've just plain started dribbling.

Is there some crucial piece of ancient Oriental preseed-fu I'm missing? I'm at my wits' end here (and my mum will tell you I didn't have far to go) - any help will be most appreciated.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you're using the desktop installer (aka Ubiquity), you may try putting your late_command under

ubiquity ubiquity/success_command string

like

ubiquity ubiquity/success_command string /bin/echo "trying echo" > /var/log/myfile

I usually put both this and the d-i stanza, just to make sure my preseed file works on both.

share|improve this answer
    
I hadn't realised there was more than one process that might be using the preseed file. How can I tell which one gets run? –  Tim Feb 15 '12 at 8:23
    
Hurrah, the ubiquity command worked - thanks! I'll mark yours as the answer even though the late_command failure is still a mystery. –  Tim Feb 16 '12 at 8:52

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.