sysprep: machine_id: handle /var/lib/dbus/machine-id

Another machine-id file, used by D-Bus.
This commit is contained in:
Pino Toscano
2015-07-29 13:47:08 +02:00
parent bc598ff52a
commit 37a0378556

View File

@@ -24,7 +24,8 @@ module G = Guestfs
let machine_id_perform (g : Guestfs.guestfs) root side_effects =
let typ = g#inspect_get_type root in
if typ <> "windows" then (
let paths = [ "/etc/machine-id"; ] in
let paths = [ "/etc/machine-id";
"/var/lib/dbus/machine-id"; ] in
let paths = List.filter g#is_file paths in
List.iter g#truncate paths
)