search for: rm_f

Displaying 20 results from an estimated 46 matches for "rm_f".

2016 Aug 04
3
[PATCH v2 1/2] firstboot: rename systemd and sysvinit
.../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 oldunitfile then ( + g#rm_f "/etc/systemd/system/default.target.wants/firstboot.service"; + (* Remove the old firstboot.service only if it is one of our + * versions. *) + match g#checksum "md5" oldunitfile with + | "6923781f7a1851b40b32b4960eb9a0fc" (* < 1.23.24 *) +...
2016 Jan 08
3
Re: Hyper-V v2v
...>> shim >> hfsplus-tools > I don't know - virt-v2v hasn't really been tested at all on Hyper-V, > although it's on the to-do list. > > Rich. > I can now boot with a livecd generated with Fedora 23. v2v failed with this error : guestfsd: main_loop: proc 367 (rm_f) took 0.00 seconds^M libguestfs: trace: rm_f = 0 libguestfs: trace: rm_f "/var/lib/rpm/__db.003" guestfsd: main_loop: new request, len 0x44^M guestfsd: main_loop: proc 367 (rm_f) took 0.00 secondslibguestfs: trace: rm_f = 0 libguestfs: trace: is_file "/boot/efi/EFI/redhat/grub.cfg&q...
2016 Jan 07
2
Hyper-V v2v
Hi list, What is the best method to migrate Hyper-V 2012 VM to oVirt/RHEV ? I made a v2v livecd, but it never load consoles and never launch p2v service (works well with BIOS VM or hardware, but G2 HyperV VM needs EFI to boot). I must add some packages on my system to build an EL7 (kmod-hfsplus from elrepo) and some other to boot on EFI : #boot EFI grub2 grub2-efi grub2-efi-modules
2016 Aug 18
1
[PATCH] v2v: linux: simplify RPM database cleaning
...rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = Linux.augeas_init g; (* Clean RPM database. This must be done early to avoid RHBZ#1143866. *) - let dbfiles = g#glob_expand "/var/lib/rpm/__db.00?" in - let dbfiles = Array.to_list dbfiles in - List.iter g#rm_f dbfiles; + Array.iter g#rm_f (g#glob_expand "/var/lib/rpm/__db.00?"); (* What grub is installed? *) let grub_config, grub = -- 2.7.4
2006 Sep 22
4
IOError on clearing locks
Hi all, I''ve got a slight problem with using Ferret in unit tests. In order to create as little cross-contamination between test suites as possible, some of my tests are creating a fresh index per test case, and then calling Index#close and deleting the containing dir during the teardown. The problem comes when GC.start kicks in after the deleting the directory: IOError: IO Error
2017 Mar 13
2
virt-customize fail to inject firstboot script when running it from script.
...libguestfs: trace: ln_sf "../init.d/guestfs-firstboot" "/etc/rc3.d/S99guestfs-firstboot" libguestfs: trace: ln_sf = 0 libguestfs: trace: ln_sf "../init.d/guestfs-firstboot" "/etc/rc5.d/S99guestfs-firstboot" libguestfs: trace: ln_sf = 0 libguestfs: trace: rm_f "/etc/init.d/virt-sysprep-firstboot" libguestfs: trace: rm_f = 0 libguestfs: trace: rm_f "/etc/rc2.d/S99virt-sysprep-firstboot" libguestfs: trace: rm_f = 0 libguestfs: trace: rm_f "/etc/rc3.d/S99virt-sysprep-firstboot" libguestfs: trace: rm_f = 0 libguestfs: trac...
2017 Mar 14
0
Re: virt-customize fail to inject firstboot script when running it from script.
...ln_sf "../init.d/guestfs-firstboot" "/etc/rc3.d/S99guestfs-firstboot" > libguestfs: trace: ln_sf = 0 > libguestfs: trace: ln_sf "../init.d/guestfs-firstboot" "/etc/rc5.d/S99guestfs-firstboot" > libguestfs: trace: ln_sf = 0 > libguestfs: trace: rm_f "/etc/init.d/virt-sysprep-firstboot" > libguestfs: trace: rm_f = 0 > libguestfs: trace: rm_f "/etc/rc2.d/S99virt-sysprep-firstboot" > libguestfs: trace: rm_f = 0 > libguestfs: trace: rm_f "/etc/rc3.d/S99virt-sysprep-firstboot" > libguestfs: trace: r...
2017 Mar 14
2
Re: virt-customize fail to inject firstboot script when running it from script.
...../init.d/guestfs-firstboot" "/etc/rc3.d/S99guestfs-firstboot" >> libguestfs: trace: ln_sf = 0 >> libguestfs: trace: ln_sf "../init.d/guestfs-firstboot" "/etc/rc5.d/S99guestfs-firstboot" >> libguestfs: trace: ln_sf = 0 >> libguestfs: trace: rm_f "/etc/init.d/virt-sysprep-firstboot" >> libguestfs: trace: rm_f = 0 >> libguestfs: trace: rm_f "/etc/rc2.d/S99virt-sysprep-firstboot" >> libguestfs: trace: rm_f = 0 >> libguestfs: trace: rm_f "/etc/rc3.d/S99virt-sysprep-firstboot" >> libgu...
2008 May 06
5
Failing build is restarted again and again (manual request + Win32)
Dear all, I am a recent user of this great tool for rails development and I have an issue with version 1.3.0. Sorry if I duplicate the question but I have been over the whole mailing list archives and could not find any answer. I have set up cruisecontrolrb on my home server (which runs WinXP, sorry, but it is better for the girlfriend to use than some linux distrib which I use on my laptop)
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 Nov 16
2
Re: [ovirt-users] OVA import of FC21 VM hangs during virt-v2v conversion?
...> libguestfs: trace: v2v: aug_load = 0 > libguestfs: trace: v2v: aug_match "/augeas/files//error" > guestfsd: main_loop: new request, len 0x40 > guestfsd: main_loop: proc 24 (aug_match) took 0.00 seconds > libguestfs: trace: v2v: aug_match = [] > libguestfs: trace: v2v: rm_f "/etc/blkid/blkid.tab" > guestfsd: main_loop: new request, len 0x40 > guestfsd: main_loop: proc 367 (rm_f) took 0.00 seconds > libguestfs: trace: v2v: rm_f = 0 > libguestfs: trace: v2v: rm_f "/etc/blkid.tab" > guestfsd: main_loop: new request, len 0x3c > guestf...
2020 Sep 23
6
[common PATCH 0/3] SELinux_relabel: relabel only if enforcing (RHBZ#1828952)
Continuation/rework of: https://www.redhat.com/archives/libguestfs/2020-May/msg00020.html This is my approach, as I explained here: https://bugzilla.redhat.com/show_bug.cgi?id=1828952#c4 https://www.redhat.com/archives/libguestfs/2020-May/msg00035.html IOW: do not attempt to relabel if the guest is not enforcing, as it is either useless or may fail; few words more are in the comments of patch #3.
2016 Aug 03
2
[PATCH] firstboot: rename systemd service file
.../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 oldunitfile then ( + g#rm_f "/etc/systemd/system/default.target.wants/firstboot.service"; + (* Remove the old firstboot.service only if it is one of our + * versions. *) + match g#checksum "md5" oldunitfile with + | "6923781f7a1851b40b32b4960eb9a0fc" (* < 1.23.24 *) +...
2016 Dec 14
1
Re: [PATCH v2 3/4] sysprep: Add a new operation to remove editor backup files (RHBZ#1401320).
...... if List.exists (String.is_suffix filename) suffixes then ( ... This would be easier to extend also for filename prefixes, in case we need them, so for now the fnmatch usage can be avoided. > + let path = full_path dir (Some filename) in > + g#rm_f path > + ) > + ) > + ) > + ) fses > + > +let op = { > + defaults with > + name = "backup-files"; > + enabled_by_default = true; > + heading = s_"Remove editor backup files from the guest"; > + pod_descripti...
2020 May 05
3
[PATCH libguestfs-common 1/2] mlcustomize: Refactor SELinux_relabel code.
...t;targeted" if not specified, just like libselinux does. +let rec relabel (g : G.guestfs) = + (* Is the guest using SELinux? (Otherwise this is a no-op). *) + if is_selinux_guest g then ( + try + use_setfiles g; + (* That worked, so we don't need to autorelabel. *) + g#rm_f "/.autorelabel" + with Failure _ -> + (* This is the fallback in case something in the setfiles + * method didn't work. That includes the case where a non-SELinux + * host is processing an SELinux guest, and other things. *) - let policy = -...
2020 Sep 24
3
Re: [common PATCH 3/3] mlcustomize: do not relabel if not enforcing (RHBZ#1828952)
...lementation of Array.mem, available only with OCaml >= 4.03. *) > let array_find a l = > List.mem a (Array.to_list l) > @@ -35,12 +38,18 @@ let rec relabel (g : G.guestfs) = > use_setfiles g; > (* That worked, so we don't need to autorelabel. *) > g#rm_f "/.autorelabel" > - with Failure _ -> > + with > + | Failure _ -> > (* This is the fallback in case something in the setfiles > * method didn't work. That includes the case where a non-SELinux > * host is processing an SELinux g...
2018 Feb 27
5
[PATCH] v2v: remove MAC address related information
Remove ties to MAC address because it is likely to change. The code is based on operations net-hwaddr and udev-persistent-net of virt-sysprep. Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com> --- v2v/convert_linux.ml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml index b273785e6..8bba74786 100644 ---
2016 Dec 14
0
[PATCH v2 4/4] sysprep: Add new operation for removing /etc/passwd- and other backup files (RHBZ#1401320).
...tc/subuid-"; + "/etc/subgid-"; +] +let files_as_pod = String.concat "\n" (List.map ((^) " ") files) + +let passwd_backups_perform (g : Guestfs.guestfs) root side_effects = + let typ = g#inspect_get_type root in + if typ = "linux" then + List.iter g#rm_f files + +let op = { + defaults with + name = "passwd-backups"; + enabled_by_default = true; + heading = s_"Remove /etc/passwd- and similar backup files"; + pod_description = Some ( + sprintf (f_"\ +On Linux the following files are removed: + +%s") fil...
2018 Feb 27
0
Re: [PATCH] v2v: remove MAC address related information
...; but your version may be clearer. > + g#aug_save () > + ); > + (* Remove persistent udev rules. *) > + try g#rm "/etc/udev/rules.d/70-persistent-net.rules" > + with G.Error _ -> () Rather than throwing away the error it's better to use 'g#rm_f' and don't try to catch G.Error at all. I guess the same problem exists in virt-sysprep. Is this a fix for any particular bug? If so it needs to have ‘(RHBZ#xxxxxx)’ added to the end of the commit heading. Patch looks OK otherwise. Rich. > + > + > and configure_kernel () =...
2020 Sep 23
0
[common PATCH 3/3] mlcustomize: do not relabel if not enforcing (RHBZ#1828952)
...SELinux. *) + (* Simple reimplementation of Array.mem, available only with OCaml >= 4.03. *) let array_find a l = List.mem a (Array.to_list l) @@ -35,12 +38,18 @@ let rec relabel (g : G.guestfs) = use_setfiles g; (* That worked, so we don't need to autorelabel. *) g#rm_f "/.autorelabel" - with Failure _ -> + with + | Failure _ -> (* This is the fallback in case something in the setfiles * method didn't work. That includes the case where a non-SELinux * host is processing an SELinux guest, and other things....