Displaying 3 results from an estimated 3 matches for "guestfsxxxxxx".
Did you mean:
guestfishxxxxxx
2014 Sep 29
2
[PATCH 1/2] builder, customize: disable SELinux
Having SELinux enabled (even if not enforcing) in the appliance causes
troubles to applications/libraries that read/write SELinux attributes.
---
builder/builder.ml | 6 +++++-
customize/customize_main.ml | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/builder/builder.ml b/builder/builder.ml
index a407924..5195cfd 100644
--- a/builder/builder.ml
+++
2014 Sep 29
0
[PATCH 2/2] customize: fix attributes of /etc/shadow (RHBZ#1146275)
...sswords =
let crypto =
match password_crypto with
| None -> default_crypto ~prog g root
| Some c -> c in
+ (* Create a (almost) empty temporary file with the attributes of
+ * /etc/shadow, so we can restore them later.
+ *)
+ let tempfile = g#mktemp "/etc/shadow.guestfsXXXXXX" in
+ g#write tempfile "*";
+ g#copy_attributes ~all:true "/etc/shadow" tempfile;
+
g#aug_init "/" 0;
let users = Array.to_list (g#aug_ls "/files/etc/shadow") in
List.iter (
@@ -116,9 +123,11 @@ let rec set_linux_passwords ~prog ?password_cryp...
2015 Dec 10
3
Which ISO format/layout does virt-builder expect?
...tool dies during the "Setting passwords" step because it's attempting to create a temp file in /etc and my ISO doesn't have an /etc directory at this point.
Here's a snippet that shows the error message:
[ 16.0] Setting passwords
libguestfs: trace: mktemp "/etc/shadow.guestfsXXXXXX"
libguestfs: trace: mktemp = NULL (error)
virt-builder: error: libguestfs error: mktemp: /etc/shadow.guestfsyU5Zwo:
No such file or directory
Is there a particular ISO format that virt-builder expects?
As a test, I used virt-builder to successfully create a centos-6 image. I looked in my .c...