~kirkland/ubuntu-jeos/ui

« back to all changes in this revision

Viewing changes to ubuntu-vm-builder.1

  • Committer: Nick Barcet
  • Date: 2008-05-25 01:00:58 UTC
  • Revision ID: nick.barcet@canonical.com-20080525010058-bfd8tppfw78bklji
added comments and explanations

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
Specify where vmware.tmpl is stored. Uses /usr/share/ubuntu-vm-builder/templates directory by default.
167
167
.RE
168
168
.SH EXEC EXPLANATIONS
169
 
The --exec parameter allows to specify the full path name of a script that will be executed after the base system is installed (except grub) whose files hierarchy is in a directory named 'root' and has not yet been copied to the target virtual devices.
 
169
 The --exec parameter allows to specify the full path name of a script that will be executed after the base system is installed (except grub) whose files hierarchy is in a directory named 'root' and has not yet been copied to the target virtual devices.
170
170
 The script is not in a chroot by default, so you can still copy file from the host file system (using full path name) to the destination files hierarchy which is in a subdirectory of the current working directory ($PWD) named 'root'.
171
171
 To execute commands in the target system's environment, you will need to prefix it with 'chroot root'.
 
172
 If the script returns an error, ubuntu-vm-builder will not continue to build the vm. 
172
173
 It is recommended to keep this script non interactive.
173
174
.TP
174
175
.B Sample script
177
178
 cp -a ~/.gnome root/home/ubuntu/
178
179
 #Execute a command in the target system
179
180
 chroot root touch /var/log/syslog
 
181
 exit 0
180
182
.RE
181
183
.SH AUTHOR
182
184
ubuntu-vm-builder and this man page was written by Soren Hansen <soren@canonical.com> and is copyright 2007-2008 Canonical Ltd.