diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-08-16 14:48:54 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-08-18 11:47:19 +0100 |
commit | 99cfc1f36ea88255a2b9497e983d57c1700dcc4c (patch) | |
tree | 83803a896aef143d7a74a9f20709daefc5ef12d6 /sysprep/sysprep_operation_script.ml | |
parent | 99759da25c29a7376490074da3d2c22602a2acec (diff) | |
download | libguestfs-99cfc1f36ea88255a2b9497e983d57c1700dcc4c.tar.gz libguestfs-99cfc1f36ea88255a2b9497e983d57c1700dcc4c.tar.xz libguestfs-99cfc1f36ea88255a2b9497e983d57c1700dcc4c.zip |
sysprep: Add --firstboot functionality.
This allows you to add scripts that run in the context of
the guest the first time it boots.
Diffstat (limited to 'sysprep/sysprep_operation_script.ml')
-rw-r--r-- | sysprep/sysprep_operation_script.ml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysprep/sysprep_operation_script.ml b/sysprep/sysprep_operation_script.ml index 9337701f..a49bc3ce 100644 --- a/sysprep/sysprep_operation_script.ml +++ b/sysprep/sysprep_operation_script.ml @@ -134,7 +134,11 @@ guest's DNS configuration file, but C<rm /etc/resolv.conf> would (try to) remove the host's file. Normally a temporary mount point for the guest is used, but you -can choose a specific one by using the I<--scriptdir> parameter."); +can choose a specific one by using the I<--scriptdir> parameter. + +B<Note:> This is different from I<--firstboot> scripts (which run +in the context of the guest when it is booting first time). +I<--script> scripts run on the host, not in the guest."); extra_args = [ ("--scriptdir", Arg.String set_scriptdir, s_"dir" ^ " " ^ s_"Mount point on host"), s_"\ |