mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
builder: templates: Set 0644 permissions on final disk image.
I think libvirt or virt-install has changed recently so that it creates disk images which are not public readable. This has lead to me uploading two sets of non-readable templates for virt-builder. Set the mode explicitly to 0644. Thanks: Laine Stump, Jacob Shivers.
This commit is contained in:
@@ -275,6 +275,10 @@ let rec main () =
|
||||
if Sys.command cmd <> 0 then exit 1;
|
||||
let output = output ^ ".xz" in
|
||||
|
||||
(* Set public readable permissions on the final file. *)
|
||||
let cmd = sprintf "chmod 0644 %s" (quote output) in
|
||||
if Sys.command cmd <> 0 then exit 1;
|
||||
|
||||
printf "Template completed: %s\n%!" output;
|
||||
|
||||
(* Construct the index fragment, but don't create this for the private
|
||||
|
||||
Reference in New Issue
Block a user