[vox-tech] Ubuntu preseed issue

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Tue May 29 11:58:31 PDT 2012


I don't know anything about this, but...

a) you really want to download a shell script and run it automatically as root? From such simple beginnings arise security disasters. Just build the script into your install, and update the install if it needs to change.

b) If you must go there, I wonder whether the execute but has been set on the newly-downloaded file?
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Tony Cratz <cratz at hematite.com> wrote:

>Hello,
>
>	I'm having issue with a preseed file.
>
>	The Debian installer allow for you to a 'preseed' file to answer
>	questions during the install process.
>
>	I have got almost everything working the way I want except for
>	the vary last step. After all of the install has finished, one
>	last shell script can be read before the first boot of the OS.
>
>
>	The new target system is mounted under /target and has not yet
>	been unmounted. The syntax of the last_command is:
>
>d-i preseed/last_command string in-target shell-command
>
>	What I want to do is create a shell script file, and then
>	execute it. And this is where I'm having a problem. I can do
>	the following and it will work great.
>
>d-i preseed/last_command string in-target echo "wget -q 
>http://192.168.1.1/presseds/preseed_post_install.sh" > /home/install.sh
>
>	That works great. It create the file. But I'm not able to do the
>	next part which would be to execute it. I have tried the a
>	number of thinges such as:
>
>1)
>
>d-i preseed/last_command string \
>	in-target echo "wget 
>http://192.168.1.1/preseeds/preseed_post_install.sh" > /home/install.sh
>; \
>	in-target bash /home/install.sh
>
>2)
>d-i preseed/last_command string \
>	in-target echo "wget 
>http://192.168.1.1/preseeds/preseed_post_install.sh" > /home/install.sh
>
>; bash /home/install.sh
>
>
>3)
>
>d-i preseed/last_command string \
>	in-target echo "wget http://192.168.1.1/preseeds
>/preseed_post_install.sh" > /home/install.sh && bash /home/install.sh
>
>
>	All of the above failed. It seems as if last_command can only
>	deals with a single shell command.
>
>	Has anyone used preseed? And if so can you help me?
>
>
>						Tony
>_______________________________________________
>vox-tech mailing list
>vox-tech at lists.lugod.org
>http://lists.lugod.org/mailman/listinfo/vox-tech



More information about the vox-tech mailing list