Displaying 10 results from an estimated 10 matches for "opath".
Did you mean:
path
2014 Sep 29
1
[PATCH] chroot: fix quoting in cp invocation
...src/chroot.ml b/src/chroot.ml
index 63a5a79..d0ee4c3 100644
--- a/src/chroot.ml
+++ b/src/chroot.ml
@@ -60,7 +60,7 @@ let build_chroot debug files outputdir =
| S_REG | S_CHR | S_BLK | S_FIFO | S_SOCK ->
if debug >= 2 then printf "supermin: chroot: copy %s\n%!" opath;
- let cmd = sprintf "cp -p %s %s" path opath in
+ let cmd = sprintf "cp -p %s %s" (quote path) (quote opath) in
ignore (Sys.command cmd)
with Unix_error _ -> ()
) files;
--
1.9.3
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
2012 Mar 16
2
plotting border over map
...at.ll,by=lat.res,length=dim(mat)[1])+0.5*lat.res
#centers of cells
col=rich.colors(32)
xlims <-c(-180,180)
ylims <-c(-90,90)
old.par <- par(no.readonly = TRUE)
par(mar=c(par()$mar[1:3],4))
cex.set <- 1.2
par(cex=cex.set)
par(mgp=c(2.0,0.3,0))
par(tcl=-0.1)
opath <- ("/Result/scitm3/") # path to save image
if(write_file){png(file=paste(opath,The_title[[ki]],".png",sep="
"),width=1000,height=800,pointsize=23)}
if(!write_file){x11()}
image.plot.fix(x=xs,y=ys,z=input[[ki]]$avg,zlim=c(1600,2000),nlevel=64,col=col,xlab=...
2010 Jan 09
4
what provices "replace" command?
I am used to using the replace command to quickly replace strings in
file, but it's not available on some of my fresh CentOS 5.4 servers.
"yum info replace", "yum whatprovides replace", and "yum search
replace" doesn't show me which package(s) to install to get it. So,
does anyone know which package to install to get the "replace"
command?
Google
2014 Mar 15
4
[supermin 1/2] chroot: Fix corner case introduced with dpkg-divert support
...@ let build_chroot debug files outputdir =
List.iter (
fun file ->
try
- let path = file.ft_source_path in
+ let path = if file_exists file.ft_source_path
+ then file.ft_source_path
+ else file.ft_path in
let st = lstat path in
let opath = outputdir // file.ft_path in
match st.st_kind with
@@ -68,7 +70,10 @@ let build_chroot debug files outputdir =
(* Second pass: fix up directory permissions in reverse. *)
let dirs = filter_map (
fun file ->
- let st = lstat file.ft_source_path in
+ let path =
+...
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 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
...ml
+++ b/src/chroot.ml
@@ -20,13 +20,15 @@ open Unix
open Printf
open Utils
+open Package_handler
let build_chroot debug files outputdir =
List.iter (
- fun path ->
+ fun file ->
try
+ let path = file.ft_source_path in
let st = lstat path in
- let opath = outputdir // path in
+ let opath = outputdir // file.ft_path in
match st.st_kind with
| S_DIR ->
(* Note we fix up the permissions of directories in a second
@@ -65,9 +67,9 @@ let build_chroot debug files outputdir =
(* Second pass: fix up directory per...
2011 Nov 17
29
[PATCH 00 of 17] Documentation updates
The following series flushes my documentation queue and replaces
previous postings of those patches.
The main difference is that the xl cfg file is now formatted using POD
instead of markdown and presented as a manpage.
I have setup a cron job to build docs/html and publish it at
http://xenbits.xen.org/docs/unstable/ (it''s a bit bare right now).
The motivation for some of these patches
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...am; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *)
+
+open Unix
+open Printf
+
+open Utils
+
+let build_chroot debug files outputdir =
+ List.iter (
+ fun path ->
+ try
+ let st = lstat path in
+ let opath = outputdir // path in
+ match st.st_kind with
+ | S_DIR ->
+ (* Note we fix up the permissions of directories in a second
+ * pass, otherwise we risk creating a directory that we are
+ * unable to write inside. GNU tar does the same thing!
+...