search for: set_random_seed

Displaying 11 results from an estimated 11 matches for "set_random_seed".

2016 May 26
2
[PATCH] customize: random_seed: avoid one file checking for existing files
...g its existance again. --- customize/random_seed.ml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/customize/random_seed.ml b/customize/random_seed.ml index e4c955e..1633aed 100644 --- a/customize/random_seed.ml +++ b/customize/random_seed.ml @@ -35,7 +35,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root = List.iter ( fun file -> if g#is_file file then ( - make_random_seed_file g file; + make_random_seed_file g file ~exists:true; created := true ) ) files; @@ -71,8 +71,11 @@ let rec set_random_seed (g : Gu...
2015 Jul 24
3
[PATCH] customize: random_seed: add CirrOS location
CirrOS has its random-seed file in /etc. --- customize/random_seed.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/customize/random_seed.ml b/customize/random_seed.ml index 34a7af7..5a15ad9 100644 --- a/customize/random_seed.ml +++ b/customize/random_seed.ml @@ -30,6 +30,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root = "/var/lib/systemd/random-seed"; (* Fedora after F20? *) "/var/lib/urandom/random-seed"; (* Debian *) "/var/lib/misc/random-seed"; (* SuSE *) + "/etc/random-seed"; (* CirrOS *) ] in...
2016 May 26
0
Re: [PATCH] customize: random_seed: avoid one file checking for existing files
...ze/random_seed.ml | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/customize/random_seed.ml b/customize/random_seed.ml > index e4c955e..1633aed 100644 > --- a/customize/random_seed.ml > +++ b/customize/random_seed.ml > @@ -35,7 +35,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root = > List.iter ( > fun file -> > if g#is_file file then ( > - make_random_seed_file g file; > + make_random_seed_file g file ~exists:true; > created := true > ) > ) files; > @@ -7...
2018 Feb 12
2
[PATCH] inspect: recognize the Kali Linux distribution (RHBZ#1544227)
Read the information from os-release, and make it behave like a Debian distribution (i.e. using dpkg, and apt). --- daemon/inspect_fs.ml | 2 ++ daemon/inspect_fs_unix.ml | 1 + daemon/inspect_types.ml | 2 ++ daemon/inspect_types.mli | 1 + generator/actions_inspection.ml | 4 ++++ 5 files changed, 10 insertions(+) diff --git a/daemon/inspect_fs.ml
2017 Sep 25
0
[PATCH] customize: Unconditionally set the machine-id if not set already.
...d; try ignore (g#sh cmd) with - Guestfs.Error msg -> + G.Error msg -> debug_logfile (); if warn_failed_no_network && not (g#get_network ()) then ( prerr_newline (); @@ -194,6 +196,26 @@ exec >>%s 2>&1 if not (Random_seed.set_random_seed g root) then warning (f_"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 s...
2018 Feb 12
0
[PATCH] customize, sysprep, v2v: handle Kali Linux as Debian
...;|"kalilinux"), _ -> `SHA512 | _, _ -> let minor = g#inspect_get_minor_version root in diff --git a/customize/random_seed.ml b/customize/random_seed.ml index 90001a728..7aea6851e 100644 --- a/customize/random_seed.ml +++ b/customize/random_seed.ml @@ -49,7 +49,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root = match typ, distro with | "linux", ("fedora"|"rhel"|"centos"|"scientificlinux"|"oraclelinux"|"redhat-based") -> Some "/var/lib/random-seed" - | "linux&quot...
2015 Feb 27
5
[PATCH 0/4] firstboot: assorted enhancements
This patchset attempts to address a number of shortcomings in the firstboot infrastructure I came across while working with v2v conversion of various Windows VMs. Roman Kagan (4): firstboot: consolidate line ending conversion firstboot: enhance firstboot driver script for Windows firstboot: make script naming descriptive convert_windows: split firstboot into steps
2014 Jan 21
1
[PATCH 1/2] sysprep: Update comments.
--- sysprep/sysprep_operation.mli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysprep/sysprep_operation.mli b/sysprep/sysprep_operation.mli index 61dde72..eb89db4 100644 --- a/sysprep/sysprep_operation.mli +++ b/sysprep/sysprep_operation.mli @@ -16,14 +16,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *) -(** Structure used to describe sysprep
2014 Mar 18
2
[PATCH] customize: Move virt-customize-related code to a separate
There's not going to be an easy way to present this patch. It's huge and interconnected. Anyway, what it does is lay the groundwork for a new tool which I'm calling 'virt-customize'. virt-customize is virt-builder, but without the part where it downloads a template from a respository. Just the part where it customizes the template, that is, installing packages, editing
2014 Nov 02
3
[PATCH] customize: Add --ssh-inject option for injecting SSH keys.
...auth_keys + ); + + (* Append the key. *) + g#write_append auth_keys key + | typ -> + warning (f_"don't know how to inject SSH keys into %s guests") typ + in + (* Set the random seed. *) msg (f_"Setting a random seed"); if not (Random_seed.set_random_seed g root) then @@ -232,6 +307,12 @@ exec >>%s 2>&1 msg (f_"Scrubbing: %s") path; g#scrub_file path + | `SSHInject user_key -> + let user, key = string_split "=" user_key in + let key = if key = "" then local_user_ssh_pubkey ()...
2017 Aug 01
2
[PATCH] Add missing oraclelinux cases.
...pear to support SHA512, according to crypt(3) *) | "fedora", v when v >= 9 -> `SHA512 diff --git a/customize/random_seed.ml b/customize/random_seed.ml index fd0d7ed22009..3ddf25471ffa 100644 --- a/customize/random_seed.ml +++ b/customize/random_seed.ml @@ -47,7 +47,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root = let distro = g#inspect_get_distro root in let file = match typ, distro with - | "linux", ("fedora"|"rhel"|"centos"|"scientificlinux"|"redhat-based") -> + | "linux", (&quo...