mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
sysprep: machine_id: handle /var/lib/dbus/machine-id
Another machine-id file, used by D-Bus.
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user