l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2012 May 29 13:46

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Ubuntu preseed issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Ubuntu preseed issue

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@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@hematite.com> wrote:

>	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 
>"; > /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:
>d-i preseed/last_command string \
>	in-target echo "wget 
>"; > /home/install.sh
>; \
>	in-target bash /home/install.sh
>d-i preseed/last_command string \
>	in-target echo "wget 
>"; > /home/install.sh
>; bash /home/install.sh
>d-i preseed/last_command string \
>	in-target echo "wget
>/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 mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.