diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-25 10:09:28 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-25 10:09:28 +0100 |
commit | 4fa51f11da26280c703bac150a5f9a86fc853f2e (patch) | |
tree | e7e84f1326fcd4ae776ec48b1fc357d7e963c963 /sysprep/sysprep_operation_machine_id.ml | |
parent | e68336d72a7d71a44d80f0d13c40ff44653e5c01 (diff) | |
download | libguestfs-4fa51f11da26280c703bac150a5f9a86fc853f2e.tar.gz libguestfs-4fa51f11da26280c703bac150a5f9a86fc853f2e.tar.xz libguestfs-4fa51f11da26280c703bac150a5f9a86fc853f2e.zip |
sysprep: operation machine-id: return `Created_files.
This operation can create the /etc/machine-id file, so it may need to
be relabelled by SELinux.
This fixes commit e68336d72a7d71a44d80f0d13c40ff44653e5c01.
Diffstat (limited to 'sysprep/sysprep_operation_machine_id.ml')
-rw-r--r-- | sysprep/sysprep_operation_machine_id.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysprep/sysprep_operation_machine_id.ml b/sysprep/sysprep_operation_machine_id.ml index 4fc0fe53..7e998cf5 100644 --- a/sysprep/sysprep_operation_machine_id.ml +++ b/sysprep/sysprep_operation_machine_id.ml @@ -27,7 +27,7 @@ let machine_id_perform g root = let path = "/etc/machine-id" in (try g#rm path with G.Error _ -> ()); (try g#touch path with G.Error _ -> ()); - [] + [ `Created_files ] ) else [] |