search for: etc_machine_id

Displaying 1 result from an estimated 1 matches for "etc_machine_id".

2017 Sep 25
0
[PATCH] customize: Unconditionally set the machine-id if not set already.
...uot;random seed could not be set for this type of guest"); + (* Set the systemd machine ID. This must be set before performing + * --install/--update since (at least in Fedora) the kernel %post + * script requires a machine ID and will fail if it is not set. + *) + let () = + let etc_machine_id = "/etc/machine-id" in + let statbuf = + try Some (g#lstatns etc_machine_id) with G.Error _ -> None in + (match statbuf with + | Some { G.st_size = 0L; G.st_mode = mode } + when (Int64.logand mode 0o170000_L) = 0o100000_L -> + message (f_"Setting...