Tuesday, May 7, 2024
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 15968  / 3 Years ago, fri, june 25, 2021, 9:13:06

I'd like to prepare an iso for unattended installation. So I generated a preeseed file to run through the installer automatically. Is it possible to download a bash script with wget and run it with bash directly in the first user's homedir (where the first user is the user account created by the installer)? What would the commands in the preseed file look like?


More From » system-installation

 Answers
2

Here is how:



d-i preseed/late_command string in-target wget -P /tmp/ $server/script.sh; in-target chmod $+x /tmp/script.sh; in-target /tmp/script.sh`


Put this line into a preseed file and you can do everything in your system you are familiar with bash.



You have to replace $server with a webhost or a local ip of course.


[#31237] Sunday, June 27, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mance

Total Points: 198
Total Questions: 105
Total Answers: 128

Location: South Georgia
Member since Mon, Aug 16, 2021
3 Years ago
;