Displaying 5 results from an estimated 5 matches for "ext2fs_copy_file_from_host".
2015 Dec 02
4
[PATCH 0/3] supermin: add --include-packagelist
Hi,
to ease debugging issues with appliances (e.g. when used in libguestfs),
using --include-packagelist will add a file containing the list of all
the packages used.
Thanks,
Pino Toscano (3):
ext2: add ext2fs_chmod and ext2fs_chown
chroot: factor out file copy code
Add --include-packagelist
src/build.ml | 42 +++++++++++++++++++++++++------
src/chroot.ml | 29
2014 Mar 13
3
[supermin 1/3] Recognize dpkg-divert
---
configure.ac | 1 +
src/config.ml.in | 1 +
src/dpkg.ml | 1 +
3 files changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index 2141540..99ea913 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,6 +92,7 @@ AC_PATH_PROG(APT_GET,[apt-get],[no])
AC_PATH_PROG(DPKG,[dpkg],[no])
AC_PATH_PROG(DPKG_DEB,[dpkg-deb],[no])
AC_PATH_PROG(DPKG_QUERY,[dpkg-query],[no])
2014 Mar 10
3
[supermin 3/3] Use the file tuple up to the point where files are copied into the filesystem / chroot
...les fit in (otherwise we'll get an error). Note that
@@ -66,7 +67,12 @@ let build_ext2 debug basedir files modpath kernel_version appliance =
printf "supermin: ext2: copying files from host filesystem\n%!";
(* Copy files from host filesystem. *)
- List.iter (fun path -> ext2fs_copy_file_from_host fs path path) files;
+ List.iter (fun file ->
+ if file_exists file.ft_source_path then
+ ext2fs_copy_file_from_host fs file.ft_source_path file.ft_path
+ else
+ ext2fs_copy_file_from_host fs file.ft_path file.ft_path
+ ) files;
if debug >= 1 then
printf "supe...
2014 Mar 08
9
supermin and dpkg-divert
While trying to run libguestfs tests after building with
"--enable-appliance --with-supermin-extra-options=--use-installed", I
ran into a peculiar error message in the c-api test:
,----
| libguestfs: error: strings: /abssymlink: strings: error while loading
| shared libraries: libbfd-2.24-multiarch.so: cannot open shared object
| file: No such file or directory
`----
The problem here
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...been unpacked into a
+ * directory for us.
+ *)
+ ext2fs_copy_dir_recursively_from_host fs basedir "/";
+
+ if debug >= 1 then
+ printf "supermin: ext2: copying files from host filesystem\n%!";
+
+ (* Copy files from host filesystem. *)
+ List.iter (fun path -> ext2fs_copy_file_from_host fs path path) files;
+
+ if debug >= 1 then
+ printf "supermin: ext2: copying kernel modules\n%!";
+
+ (* Import the kernel modules. *)
+ ext2fs_copy_file_from_host fs "/lib" "/lib";
+ ext2fs_copy_file_from_host fs "/lib/modules" "/lib/modules&...