Displaying 20 results from an estimated 219 matches for "is_fil".
Did you mean:
is_file
2017 Mar 13
2
virt-customize fail to inject firstboot script when running it from script.
...part_end: 10736369663, part_size: 10236198912, }>
libguestfs: trace: is_dir "/etc"
libguestfs: trace: is_dir = 0
libguestfs: trace: is_dir "/bin"
libguestfs: trace: is_dir = 0
libguestfs: trace: is_dir "/share"
libguestfs: trace: is_dir = 0
libguestfs: trace: is_file "/grub/menu.lst"
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/grub/grub.conf"
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/grub2/grub.cfg"
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/hurd/console"
libguest...
2015 Oct 05
0
Re: [PATCH 3/6] v2v:test:win: actually check the eventual layout
...0] Assigning disks to buses
[ 6.0] Copying disk 1/1 to test-v2v-windows-conversion.d/windows-sda (raw)
(100.00/100%)
[ 6.2] Creating output metadata
[ 6.2] Finishing off
libguestfs: trace: is_dir "/Program Files/Red Hat/Firstboot"
libguestfs: trace: is_dir = 1
libguestfs: trace: is_file "/Program Files/Red Hat/Firstboot/firstboot.bat"
libguestfs: trace: is_file = 1
libguestfs: trace: is_dir "/Program Files/Red Hat/Firstboot/scripts"
libguestfs: trace: is_dir = 1
libguestfs: trace: is_dir "/Windows/Drivers/VirtIO"
libguestfs: trace: is_dir = 1
libgues...
2011 Dec 07
2
failure converting Linux ESX guest to KVM hypervisor
...libguestfs: trace: get_e2uuid = "1a90f551-5635-4d8d-af60-810b82a45cda"
libguestfs: trace: get_e2label "/dev/sda1"
libguestfs: trace: get_e2label = "/boot"
libguestfs: trace: mount_ro "/dev/sda1" "/"
libguestfs: trace: mount_ro = 0
libguestfs: trace: is_file "/grub/menu.lst"
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/grub/grub.conf"
libguestfs: trace: is_file = 1
libguestfs: trace: umount_all
libguestfs: trace: umount_all = 0
libguestfs: trace: file "/dev/sda2"
libguestfs: trace: file = "Linux/i386 s...
2017 Mar 14
0
Re: virt-customize fail to inject firstboot script when running it from script.
...0236198912, }>
> libguestfs: trace: is_dir "/etc"
> libguestfs: trace: is_dir = 0
> libguestfs: trace: is_dir "/bin"
> libguestfs: trace: is_dir = 0
> libguestfs: trace: is_dir "/share"
> libguestfs: trace: is_dir = 0
> libguestfs: trace: is_file "/grub/menu.lst"
> libguestfs: trace: is_file = 0
> libguestfs: trace: is_file "/grub/grub.conf"
> libguestfs: trace: is_file = 0
> libguestfs: trace: is_file "/grub2/grub.cfg"
> libguestfs: trace: is_file = 0
> libguestfs: trace: is_file "...
2016 Jan 08
3
Re: Hyper-V v2v
...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"
"followsymlinks:true"
^M
guestfsd: main_loop: new request, len 0x50^M
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds^M
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/boot/grub2/grub.cfg" "followsymlinks:true...
2015 Oct 05
3
Re: [PATCH 3/6] v2v:test:win: actually check the eventual layout
On Mon, Oct 05, 2015 at 03:40:03PM +0300, Roman Kagan wrote:
> v2v/test-v2v-windows-conversion.sh used to query if the expected
> directories and filed were present in the VM upon conversion; however it
> would ignore the results of that query.
>
> That lead to the test passing even though the checks failed.
Good point. Fix is kinda ugly though. How about:
output=$(
guestfish
2017 Mar 14
2
Re: virt-customize fail to inject firstboot script when running it from script.
...;> libguestfs: trace: is_dir "/etc"
>> libguestfs: trace: is_dir = 0
>> libguestfs: trace: is_dir "/bin"
>> libguestfs: trace: is_dir = 0
>> libguestfs: trace: is_dir "/share"
>> libguestfs: trace: is_dir = 0
>> libguestfs: trace: is_file "/grub/menu.lst"
>> libguestfs: trace: is_file = 0
>> libguestfs: trace: is_file "/grub/grub.conf"
>> libguestfs: trace: is_file = 0
>> libguestfs: trace: is_file "/grub2/grub.cfg"
>> libguestfs: trace: is_file = 0
>> libguestfs: tr...
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
2014 Sep 27
2
Re: Virt-v2v conversion issue
Hi,
Now with the new libguestfs-1.27.55-1.1 I have this new issue :
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/freedos/freedos.ico"
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/boot/loader.rc"
libguestfs: trace: is_file = 0
libguestfs: trace: umount_all
libguestfs: trace: umount_all = 0
libguestfs: trace: vfs_type "/dev/sda2"
lib...
2016 May 26
2
[PATCH] customize: random_seed: avoid one file checking for existing files
...), 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 : Guestfs.guestfs) root =
!created
-and make_random_seed_file g file =
- let file_exi...
2016 Sep 13
1
[PATCH v3 1/2] v2v: linux: correctly reconfigure the initrd on Debian
...ramfs_command () =
+ let args =
+ "/usr/sbin/update-initramfs" ::
+ (if verbose () then [ "-v" ] else [])
+ @ [ "-c"; "-k"; mkinitrd_kv ]
+ in
+ ignore (g#command (Array.of_list args))
+ in
+
if g#is_file ~followsymlinks:true "/sbin/dracut" then
run_dracut_command "/sbin/dracut"
else if g#is_file ~followsymlinks:true "/usr/bin/dracut" then
@@ -491,6 +500,18 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps =...
2017 Jul 14
0
[PATCH 07/27] daemon: Reimplement ‘is_dir’, ‘is_file’ and ‘is_symlink’ APIs in OCaml.
...l \
devsparts.ml \
file.ml \
+ is.ml \
callbacks.ml \
daemon.ml
diff --git a/daemon/is.c b/daemon/is.c
index 4d5e911c2..a91dab32b 100644
--- a/daemon/is.c
+++ b/daemon/is.c
@@ -39,36 +39,6 @@ do_exists (const char *path)
/* Takes optional arguments, consult optargs_bitmask. */
int
-do_is_file (const char *path, int followsymlinks)
-{
- mode_t mode;
- int r;
-
- if (!(optargs_bitmask & GUESTFS_IS_FILE_FOLLOWSYMLINKS_BITMASK))
- followsymlinks = 0;
-
- r = get_mode (path, &mode, followsymlinks);
- if (r <= 0) return r;
- return S_ISREG (mode);
-}
-
-/* Takes optional...
2018 Sep 19
2
virt-customize is very slow in ubuntu 18.04/centos 7.5
...ew request, len 0x34
guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds
libguestfs: trace: is_dir = 1
libguestfs: trace: is_dir "/share"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds
libguestfs: trace: is_dir = 0
libguestfs: trace: is_file "/grub/menu.lst"
guestfsd: main_loop: new request, len 0x40
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/grub/grub.conf"
guestfsd: main_loop: new request, len 0x40
guestfsd: main_loop: proc 37 (is_file) too...
2016 Jan 28
1
error during p2v unable to rebuild initrd
Hello
I have error virt-v2v: error: unable to rebuild initrd
(/boot/initramfs-4.2.3-300.fc23.x86_64.img) because mkinitrd or dracut was
not found in the guest
My physical machine run on fedora23
Boot on usb made from virt-p2v-livecd-1.32.0.fc23.iso
<http://oirase.annexia.org/virt-p2v/virt-p2v-livecd-1.32.0.fc23.iso>
Log joined to this mail
Do you have this problem ?
2016 Sep 16
1
[PATCH v4] v2v: linux: correctly reconfigure the initrd on Debian
...ramfs_command () =
+ let args =
+ "/usr/sbin/update-initramfs" ::
+ (if verbose () then [ "-v" ] else [])
+ @ [ "-c"; "-k"; mkinitrd_kv ]
+ in
+ ignore (g#command (Array.of_list args))
+ in
+
if g#is_file ~followsymlinks:true "/sbin/dracut" then
run_dracut_command "/sbin/dracut"
else if g#is_file ~followsymlinks:true "/usr/bin/dracut" then
@@ -491,6 +500,30 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps =...
2015 Nov 09
2
[PATCH 1/2] customize: check for file existence with --edit (RHBZ#1275806)
Check that a path provided to --edit exists already; while the is_file
call later will fail for non-existing files, with an explicit check a
better error message can be provided.
---
customize/customize_run.ml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index ff7bd0d..054ee53 100644
--- a/customize/c...
2016 Aug 09
2
Re: [PATCH 8/8] v2v: linux: correctly reconfigure the initrd on Debian
...nux.ml
> index cfe46b8..a556ce6 100644
> --- a/v2v/convert_linux.ml
> +++ b/v2v/convert_linux.ml
> @@ -866,7 +866,9 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps =
> ignore (g#command (Array.of_list args))
> in
>
> - if g#is_file ~followsymlinks:true "/sbin/dracut" then
> + if family = `Debian_family then
> + ignore (g#command ([| "dpkg-reconfigure"; "--frontend=noninteractive"; "initramfs-tools" |]))
> + else if g#is_file ~followsymlinks:true "/sbin/dr...
2014 Sep 27
0
Re: Virt-v2v conversion issue
On Sat, Sep 27, 2014 at 10:44:42AM +0000, VONDRA Alain wrote:
> Hi,
> Now with the new libguestfs-1.27.55-1.1 I have this new issue :
>
> libguestfs: trace: is_file = 0
> libguestfs: trace: is_file "/freedos/freedos.ico"
> libguestfs: trace: is_file = 0
> libguestfs: trace: is_file "/boot/loader.rc"
> libguestfs: trace: is_file = 0
> libguestfs: trace: umount_all
> libguestfs: trace: umount_all = 0
> libguestfs: trace:...
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.
2016 Sep 12
2
[PATCH 2/2] v2v: ilnux: detect name of grub2-mkconfig
...d private grub2_mkconfig_cmd =
+ let elems = [
+ "/sbin/grub2-mkconfig";
+ "/usr/sbin/grub2-mkconfig";
+ "/sbin/grub-mkconfig"
+ "/usr/sbin/grub-mkconfig"
+ ] in
+ try
+ List.find (
+ let e ->
+ try g#is_file ~followsymlinks:true e
+ with G.Error _ -> false
+ ) elems
+ with Not_found ->
+ error (f_"failed to find grub2-mkconfig binary (but Grub2 was detected on guest)")
+
method private grub2_update_console ~remove () =
let rex = Str.regexp "\\(.*\\)\\...