Running a script in customization console

Asked by Bob Mallett

Hi,

I have a script that contains the updates that I make to customize my image. This includes updating the source list, installing some components, removing some applications, and a small cleanup. At the moment I run this in the customization console by running "gedit myupdates.sh" and pasting my script into it from outside the console. I then run the script; when completed I let UCK carry on with the image build. This allows me to make the same changes time and time again, as a "perfect" my image. I can't run the script directly as it is outside the chroot'ed environment. Is there a better way to do this? An option on the menus to run a script would be a nice way to automate this; unless I am missing something obvious.

Bob

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Customization Kit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Fabrizio Balliano (fabrizio-balliano) said :
#1

you could run the console and simply paste the script there...

personally i would use the uck-remaster-* scripts instead of uck-gui, that would give you more flexibility

Revision history for this message
Sindhu S (sindhu-s) said :
#2

Yes, the obvious way to do it is copy the script from your disk to your ~/tmp/remaster-root/mnt :)

Open up a terminal in your OS, do sudo cp myscript.sh ~/tmp/remaster-root/mnt and run script from within root console provided by uck (your script will be in /mnt/myscript.sh)

Can you help with this problem?

Provide an answer of your own, or ask Bob Mallett for more information if necessary.

To post a message you must log in.