Saturday, February 24, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  5] [ 0]  / answers: 1 / hits: 4307  / 2 Years ago, mon, december 20, 2021, 7:32:25

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.

More From » 11.04


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

ubiquity ubiquity/success_command string


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.

[#40388] Monday, December 20, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 11
Total Questions: 121
Total Answers: 109

Location: Puerto Rico
Member since Sun, Jun 27, 2021
3 Years ago