Displaying 9 results from an estimated 9 matches for "install_sysvinit_service".
2012 Sep 21
3
[PATCH] sysprep: handle distro specific sysv scripts
...r);
g#write (sprintf "%s/firstboot.sh" firstboot_dir) firstboot_sh;
@@ -64,18 +85,18 @@ let rec install_service g root =
(* systemd, else assume sysvinit *)
if g#is_dir "/etc/systemd" then
- install_systemd_service g root
+ install_systemd_service g
else
- install_sysvinit_service g root
+ install_sysvinit_service g distro
(* Install the systemd firstboot service, if not installed already. *)
-and install_systemd_service g root =
+and install_systemd_service g =
g#write (sprintf "%s/firstboot.service" firstboot_dir) firstboot_service;
g#mkdir_p "/e...
2016 Aug 26
2
[PATCH 1/2] customize: Fix firstboot scripts on Debian 6 & 7 (RHBZ#1019388).
I have only verified the fix on Debian 7.
The Debian 6 guest doesn't appear to boot, I'm not sure why.
The second patch contains a test suite.
Rich.
2016 Aug 03
2
[PATCH] firstboot: rename systemd service file
...ot; (* < 1.25.2 *)
+ | "39aeb10df29104797e3a9aca4db37a6e" ->
+ g#rm oldunitfile
+ | csum ->
+ warning (f_"firstboot: unknown version for old firstboot.service file %s (md5=%s), it will not be removed")
+ oldunitfile csum
+ )
and install_sysvinit_service g = function
| "fedora"|"rhel"|"centos"|"scientificlinux"|"redhat-based" ->
--
2.7.4
2016 Aug 03
0
Re: [PATCH] firstboot: rename systemd service file
...ot;39aeb10df29104797e3a9aca4db37a6e" ->
> + g#rm oldunitfile
> + | csum ->
> + warning (f_"firstboot: unknown version for old firstboot.service file %s (md5=%s), it will not be removed")
> + oldunitfile csum
> + )
>
> and install_sysvinit_service g = function
> | "fedora"|"rhel"|"centos"|"scientificlinux"|"redhat-based" ->
> --
> 2.7.4
>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs@redhat.com
> https://www.redhat.c...
2016 Aug 04
3
[PATCH v2 1/2] firstboot: rename systemd and sysvinit
...ot; (* < 1.25.2 *)
+ | "39aeb10df29104797e3a9aca4db37a6e" ->
+ g#rm oldunitfile
+ | csum ->
+ warning (f_"firstboot: unknown version for old firstboot.service file %s (md5=%s), it will not be removed")
+ oldunitfile csum
+ )
and install_sysvinit_service g = function
| "fedora"|"rhel"|"centos"|"scientificlinux"|"redhat-based" ->
@@ -142,11 +159,16 @@ WantedBy=default.target
g#mkdir_p "/etc/rc.d/rc3.d";
g#mkdir_p "/etc/rc.d/rc5.d";
g#ln_sf (sprintf "%s/...
2012 Aug 16
5
[PATCH 0/4] Add customization capabilities to virt-sysprep
In the TODO file there's a discussion of perhaps writing a new
'virt-customize' tool. I think it's probably better (or at any rate,
easier) to just add this functionality into virt-sysprep. That is
what this small series of patches aims to achieve.
Note these are not very well tested at the moment.
The first patch adds a generic and useful '--firstboot' flag. The
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
2017 Jul 17
6
[PATCH v2 0/4] customize: firstboot: Install firstboot scripts in multi-user.target (RHBZ#1469655).
v1: https://www.redhat.com/archives/libguestfs/2017-July/msg00127.html
v2:
- Remove /etc/systemd/system/default.target.wants/guestfs-firstboot.service
link as well.
- Use multi-user.target for virt-p2v as well.
Rich.
2017 Aug 01
2
[PATCH] Add missing oraclelinux cases.
...v/linux.ml | 2 +-
9 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/customize/firstboot.ml b/customize/firstboot.ml
index ddcb5627143d..b07bda00165a 100644
--- a/customize/firstboot.ml
+++ b/customize/firstboot.ml
@@ -154,7 +154,7 @@ WantedBy=%s
and install_sysvinit_service g root distro major =
match distro with
- | "fedora"|"rhel"|"centos"|"scientificlinux"|"redhat-based" ->
+ | "fedora"|"rhel"|"centos"|"scientificlinux"|"oraclelinux"|"redhat-based&...