search for: ln_sf

Displaying 20 results from an estimated 27 matches for "ln_sf".

Did you mean: ln_s
2016 Aug 04
3
[PATCH v2 1/2] firstboot: rename systemd and sysvinit
...ot; in g#mkdir_p unitdir; - let unitfile = sprintf "%s/firstboot.service" unitdir in + let unitfile = sprintf "%s/guestfs-firstboot.service" unitdir in g#write unitfile firstboot_service; g#mkdir_p "/etc/systemd/system/default.target.wants"; - g#ln_sf unitfile "/etc/systemd/system/default.target.wants" + g#ln_sf unitfile "/etc/systemd/system/default.target.wants"; + + (* Try to remove the old firstboot.service files. *) + let oldunitfile = sprintf "%s/firstboot.service" unitdir in + if g#is_file oldunitf...
2012 Sep 21
3
[PATCH] sysprep: handle distro specific sysv scripts
...* 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 "/etc/systemd/system/default.target.wants"; g#ln_sf (sprintf "%s/firstboot.service" firstboot_dir) "/etc/systemd/system/default.target.wants" -and install_sysvinit_service g root = +and install_sysvinit_redhat g = g#mkdir_p "/etc/rc.d/rc2.d"; g#mkdir_p "/etc/rc.d/rc3.d"; g#mkdir_p "/etc/rc...
2016 Aug 04
0
[PATCH v2 2/2] firstboot: make SysV symlinks as relative on Debian
...6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/customize/firstboot.ml b/customize/firstboot.ml index 52dfbbe..706d63c 100644 --- a/customize/firstboot.ml +++ b/customize/firstboot.ml @@ -197,11 +197,11 @@ WantedBy=default.target g#mkdir_p "/etc/rc5.d"; g#ln_sf (sprintf "%s/firstboot.sh" firstboot_dir) "/etc/init.d/guestfs-firstboot"; - g#ln_sf "/etc/init.d/guestfs-firstboot" + g#ln_sf "../init.d/guestfs-firstboot" "/etc/rc2.d/S99guestfs-firstboot"; - g#ln_sf "/etc/init.d/guestf...
2017 Mar 13
2
virt-customize fail to inject firstboot script when running it from script.
...aStandardError=inherit\x0a\x0a[Install]\x0aWanted"<truncated, original size 274 bytes> libguestfs: trace: internal_write = 0 libguestfs: trace: write = 0 libguestfs: trace: mkdir_p "/etc/systemd/system/default.target.wants" libguestfs: trace: mkdir_p = 0 libguestfs: trace: ln_sf "/usr/lib/systemd/system/guestfs-firstboot.service" "/etc/systemd/system/default.target.wants" libguestfs: trace: ln_sf = 0 libguestfs: trace: is_file "/usr/lib/systemd/system/firstboot.service" libguestfs: trace: is_file = 0 libguestfs: trace: is_dir "/etc/rc...
2016 Aug 03
2
[PATCH] firstboot: rename systemd service file
...n g#mkdir_p unitdir; - let unitfile = sprintf "%s/firstboot.service" unitdir in + let unitfile = sprintf "%s/virt-sysprep-firstboot.service" unitdir in g#write unitfile firstboot_service; g#mkdir_p "/etc/systemd/system/default.target.wants"; - g#ln_sf unitfile "/etc/systemd/system/default.target.wants" + g#ln_sf unitfile "/etc/systemd/system/default.target.wants"; + + (* Try to remove the old firstboot.service files. *) + let oldunitfile = sprintf "%s/firstboot.service" unitdir in + if g#is_file oldunitf...
2017 Mar 14
0
Re: virt-customize fail to inject firstboot script when running it from script.
...a\x0a[Install]\x0aWanted"<truncated, original size 274 bytes> > libguestfs: trace: internal_write = 0 > libguestfs: trace: write = 0 > libguestfs: trace: mkdir_p "/etc/systemd/system/default.target.wants" > libguestfs: trace: mkdir_p = 0 > libguestfs: trace: ln_sf "/usr/lib/systemd/system/guestfs-firstboot.service" "/etc/systemd/system/default.target.wants" > libguestfs: trace: ln_sf = 0 > libguestfs: trace: is_file "/usr/lib/systemd/system/firstboot.service" > libguestfs: trace: is_file = 0 > libguestfs: trace:...
2017 Mar 14
2
Re: virt-customize fail to inject firstboot script when running it from script.
...x0aWanted"<truncated, original size 274 bytes> >> libguestfs: trace: internal_write = 0 >> libguestfs: trace: write = 0 >> libguestfs: trace: mkdir_p "/etc/systemd/system/default.target.wants" >> libguestfs: trace: mkdir_p = 0 >> libguestfs: trace: ln_sf "/usr/lib/systemd/system/guestfs-firstboot.service" "/etc/systemd/system/default.target.wants" >> libguestfs: trace: ln_sf = 0 >> libguestfs: trace: is_file "/usr/lib/systemd/system/firstboot.service" >> libguestfs: trace: is_file = 0 >> libgues...
2016 Aug 03
0
Re: [PATCH] firstboot: rename systemd service file
...> - let unitfile = sprintf "%s/firstboot.service" unitdir in > + let unitfile = sprintf "%s/virt-sysprep-firstboot.service" unitdir in > g#write unitfile firstboot_service; > g#mkdir_p "/etc/systemd/system/default.target.wants"; > - g#ln_sf unitfile "/etc/systemd/system/default.target.wants" > + g#ln_sf unitfile "/etc/systemd/system/default.target.wants"; > + > + (* Try to remove the old firstboot.service files. *) > + let oldunitfile = sprintf "%s/firstboot.service" unitdir in > +...
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
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
2015 Oct 24
2
[PATCH 0/2] Allow 'make install' to be run twice.
Still don't recommend you use 'make install', but here we go. Rich.
2013 May 01
1
[PATCH] tests/c-api: Allow the C API tests to run in parallel.
I'm not going to put this upstream because there's no benefit. However it is useful to record the patch on the mailing list. Rich.
2014 Jan 10
3
[PATCH 0/3] Timezone and keyboard layout settings in virt-builder and virt-sysprep.
Setting timezone is easy. It turns out to be almost impossible to set keyboard layout in virt-builder sanely, so I have added some examples instead. Coming up next, setting languages in virt-builder (clue: very very very hard). Rich.
2013 Jun 14
3
[PATCH 0/2] Fix inspection of Fedora guests (RHBZ#974489).
Here is a preliminary fix for this bug. I'm running the test suite on this now. Rich.
2017 Jul 16
4
[PATCH 0/2] customize: firstboot: Install firstboot scripts in multi-user.target (RHBZ#1469655).
See: https://bugzilla.redhat.com/show_bug.cgi?id=1469655 https://github.com/systemd/systemd/issues/6334 https://lists.freedesktop.org/archives/systemd-devel/2017-July/039325.html
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.
2012 Jan 12
1
Libguestfs gobject bindings
I'm currently working on gobject bindings for libguestfs. I haven't got as far as compiling anything yet, but I've attached the C header for initial review. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490 -------------- next part -------------- An embedded and
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in: https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html Rich.
2013 Sep 25
5
Re: [PATCH 3/4] Add SUSE converter
...ub legacy, all we have to do is re-install grub in the correct place. > +sub convert_efi > +{ > + my $self = shift; > + my ($device) = @_; > + > + my $g = $self->{g}; > + > + $g->cp('/etc/grub.conf', '/boot/grub/grub.conf'); > + $g->ln_sf('/boot/grub/grub.conf', '/etc/grub.conf'); > + > + # Reload to pick up grub.conf in its new location > + eval { $g->aug_load() }; > + augeas_error($g, $@) if ($@); > + > + $g->command(['grub-install.unsupported', $device]); I guess that...
2013 Sep 24
5
[PATCH 0/4] Add SUSE guest converter to virt-v2v
This is a new conversion module to convert SUSE Linux and openSUSE guests. The converter is based on the RedHat module, and should offer the same functionality on both SUSE and RedHat hosts. There are a few additional messages in this module, such as reporting of packages when installing through zypper or the local virt-v2v repo. These messages don't necessarily flow unless verbose switches