Running a script after unattended installation
Kai Renz
writemecas at googlemail.com
Wed Nov 10 14:44:36 UTC 2010
Hello guys,
i'm currently installing ubuntu using a PXE Server and a preseed file.
The unattended installation itself works fine, but now i need to run a
script after the installation to configure some services.
To do this i use "preseed/late_command" in my preseed file:
> *d-i preseed/late_command string wget
> http://MY_IP/finisher.sh /target/root; sed -i 's_exit 0_sh
> /root/finisher.sh_' /target/etc/rc.local;*
>
This is the content of finisher.sh, i did this to test if the script is
really called:
> #!/bin/bash
>
echo "test" >> /test.txt
>
On my pxe server i have a directory with the content of the installation
cd, my preseed.cfg and the finisher.sh file.
What is wrong with my configuration?! I need some way to run a script after
the installation.
greetings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101110/dba962e8/attachment.html>
More information about the ubuntu-users
mailing list