I'm setting up an automatic install of Ubuntu 12.04, using preseed. Everything installs fine, without any questions, but I can't quite figure out how to use the late_command at the end of the preseed file.
What I want to do is wget a shell script and run that.
I tried:
But it just hung at the very end of the installation. The installation was functional, but the script had not run at all.Code:d-i preseed/late_command string chroot /target;cd /;/usr/bin/wget http://ubuntu/12.04/postinst/files.tar.gz;/bin/tar -zxvf files.tar.gz;/bin/sh files/post.sh;touch /root/test;
Is the newly installed file system mounted under /target? And what's the environment like at this point in the install. What would be the correct way to do this?



Adv Reply

Bookmarks