Displaying 20 results from an estimated 185 matches for "mkdir_p".
2012 Sep 21
3
[PATCH] sysprep: handle distro specific sysv scripts
...fi
+ done
+fi
" firstboot_dir
let firstboot_service = sprintf "\
@@ -56,7 +77,7 @@ WantedBy=default.target
let failed fs =
ksprintf (fun msg -> failwith (s_"firstboot: failed: " ^ msg)) fs
-let rec install_service g root =
+let rec install_service g distro =
g#mkdir_p firstboot_dir;
g#mkdir_p (sprintf "%s/scripts" firstboot_dir);
g#write (sprintf "%s/firstboot.sh" firstboot_dir) firstboot_sh;
@@ -64,18 +85,18 @@ let rec install_service g root =
(* systemd, else assume sysvinit *)
if g#is_dir "/etc/systemd" then
- in...
2015 Feb 23
3
[PATCH 1/2] mllib: add helper mkdir_p
...2 files changed, 14 insertions(+)
diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
index 898be17..76d8b79 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -673,3 +673,14 @@ let qemu_input_filename filename =
"./" ^ filename
else
filename
+
+let rec mkdir_p path permissions =
+ try Unix.mkdir path permissions
+ with
+ | Unix.Unix_error (Unix.EEXIST, _, _) -> ()
+ | Unix.Unix_error (Unix.ENOENT, _, _) ->
+ (* A component in the path does not exist, so first try
+ * creating the parent directory, and then again the requested
+ * dir...
2016 Aug 04
3
[PATCH v2 1/2] firstboot: rename systemd and sysvinit
...et firstboot_service = sprintf "\
[Unit]
-Description=virt-sysprep firstboot service
+Description=libguestfs firstboot service
After=network.target
Before=prefdm.service
@@ -122,10 +122,27 @@ WantedBy=default.target
*)
let unitdir = "/usr/lib/systemd/system" 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 "...
2014 Jan 16
1
[PATCH] hivex: ruby: Support 'make INSTALLDIRS=vendor install' for Ruby
...here Perl bindings are installed.
+INSTALLDIRS = site
+
+RUBY_LIBDIR := $(shell $(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['$(INSTALLDIRS)libdir']")
+RUBY_ARCHDIR := $(shell $(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['$(INSTALLDIRS)archdir']")
install:
- $(MKDIR_P) $(DESTDIR)$(RUBY_SITELIB)
- $(MKDIR_P) $(DESTDIR)$(RUBY_SITEARCH)
- $(INSTALL) -p -m 0644 ${srcdir}/lib/hivex.rb $(DESTDIR)$(RUBY_SITELIB)
- $(INSTALL) -p -m 0755 ${builddir}/ext/hivex/_hivex.so $(DESTDIR)$(RUBY_SITEARCH)
+ $(MKDIR_P) $(DESTDIR)$(RUBY_LIBDIR)
+ $(MKDIR_P) $(DESTDIR)$(RUBY_ARCHDIR)...
2017 Oct 12
2
[PATCH][RESEND] use autoconf MKDIR_P to reduce usage of legacy mkinstalldirs script
Basically all platforms have a proper "mkdir -p". Autoconf has install-sh as
fallback when using AC_PROG_MKDIR_P, which is also hardened against races if
it is recent enough. Update that script and use MKDIR_P whereever possible.
Installs fine in my tests and avoids the "mkdir: cannot create directory '?':
File exists" messages along the way.
Greetings,
Eike
--
Rolf Eike Beer, emlix Gm...
2015 Feb 23
0
[PATCH 2/2] builder: use mkdir_p to create the cachedir (RHBZ#1195204)
...nged, 1 insertion(+), 1 deletion(-)
diff --git a/builder/cache.ml b/builder/cache.ml
index 9e69bc1..86ac41b 100644
--- a/builder/cache.ml
+++ b/builder/cache.ml
@@ -35,7 +35,7 @@ type t = {
let create ~verbose ~directory =
if not (is_directory directory) then
- mkdir directory 0o755;
+ mkdir_p directory 0o755;
{
verbose = verbose;
directory = directory;
--
2.1.0
2017 Mar 13
2
virt-customize fail to inject firstboot script when running it from script.
...ce: inspect_get_type = "linux"
libguestfs: trace: inspect_get_distro "/dev/sda2"
libguestfs: trace: inspect_get_distro = "debian"
libguestfs: trace: inspect_get_major_version "/dev/sda2"
libguestfs: trace: inspect_get_major_version = 8
libguestfs: trace: mkdir_p "/usr/lib/virt-sysprep"
[ 3.4] Installing firstboot script: /utilities/1041/startup.sh
libguestfs: trace: mkdir_p = 0
libguestfs: trace: mkdir_p "/usr/lib/virt-sysprep/scripts"
libguestfs: trace: mkdir_p = 0
libguestfs: trace: write "/usr/lib/virt-sysprep/firstboot.s...
2013 Dec 07
2
[PATCH 1/2] Fix installing man-pages from out-of-tree build
...+---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/po-docs/ja/Makefile.am b/po-docs/ja/Makefile.am
index da1bcc3..820f91a 100644
--- a/po-docs/ja/Makefile.am
+++ b/po-docs/ja/Makefile.am
@@ -160,8 +160,8 @@ $(podfiles):
# XXX Can automake do this properly?
install-data-hook:
$(MKDIR_P) $(DESTDIR)$(mandir)/$(LINGUA)/man1
- $(INSTALL) -m 0644 *.1 $(DESTDIR)$(mandir)/$(LINGUA)/man1
+ $(INSTALL) -m 0644 $(srcdir)/*.1 $(DESTDIR)$(mandir)/$(LINGUA)/man1
$(MKDIR_P) $(DESTDIR)$(mandir)/$(LINGUA)/man3
- $(INSTALL) -m 0644 *.3 $(DESTDIR)$(mandir)/$(LINGUA)/man3
+ $(INSTALL) -m 0644 $(sr...
2007 Apr 09
2
Errno::EACCES in Controller / Permission denied
...ion denied - /www/shelikes/index
RAILS_ROOT: /www/shelikes/public/../config/..
Application Trace | Framework Trace | Full Trace
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir''
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir''
/usr/local/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p''
/usr/local/lib/ruby/1.8/fileutils.rb:215:in `reverse_each''
/usr/local/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p''
/usr/local/lib/ruby/1.8/fileutils.rb:201:in `each''
/usr/local/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p''
#{RAILS_ROOT}/vendor/plugins/acts_a...
2017 Mar 14
0
Re: virt-customize fail to inject firstboot script when running it from script.
...uot;linux"
> libguestfs: trace: inspect_get_distro "/dev/sda2"
> libguestfs: trace: inspect_get_distro = "debian"
> libguestfs: trace: inspect_get_major_version "/dev/sda2"
> libguestfs: trace: inspect_get_major_version = 8
> libguestfs: trace: mkdir_p "/usr/lib/virt-sysprep"
> [ 3.4] Installing firstboot script: /utilities/1041/startup.sh
> libguestfs: trace: mkdir_p = 0
> libguestfs: trace: mkdir_p "/usr/lib/virt-sysprep/scripts"
> libguestfs: trace: mkdir_p = 0
> libguestfs: trace: write "/usr/lib...
2015 Aug 11
3
[PATCH 1/2] mllib: add normalize_arch helper
...ib/common_utils.ml | 12 ++++++++++--
mllib/common_utils.mli | 5 +++++
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
index f9e8996..ca6d470 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -730,13 +730,21 @@ let rec mkdir_p path permissions =
mkdir_p (Filename.dirname path) permissions;
Unix.mkdir path permissions
+let normalize_arch = function
+ | "i386" | "i486" | "i586" | "i686" -> "i386"
+ | "amd64" | "x86_64" -> "x86_64...
2017 Mar 14
2
Re: virt-customize fail to inject firstboot script when running it from script.
...>> libguestfs: trace: inspect_get_distro "/dev/sda2"
>> libguestfs: trace: inspect_get_distro = "debian"
>> libguestfs: trace: inspect_get_major_version "/dev/sda2"
>> libguestfs: trace: inspect_get_major_version = 8
>> libguestfs: trace: mkdir_p "/usr/lib/virt-sysprep"
>> [ 3.4] Installing firstboot script: /utilities/1041/startup.sh
>> libguestfs: trace: mkdir_p = 0
>> libguestfs: trace: mkdir_p "/usr/lib/virt-sysprep/scripts"
>> libguestfs: trace: mkdir_p = 0
>> libguestfs: trace: write...
2017 Jan 16
2
Building xapian-bindings
I'm posting this here to help others who might be having the same issue.
I maintain xapian-core ruby gem.
I was trying to upgrade to 1.4.2 and had some issues.
The generated makefile doesn’t work because of the following:
docs/rdocs/index.html: docs/xapian.rb
rm -rf docs/rdocs
$(MKDIR_P) docs
cd docs && $(RDOC) --op rdocs `test -f xapian.rb||echo
'$(abs_srcdir)/'`xapian.rb
@DOCUMENTATION_RULES_TRUE at docs/xapian.rb: generate-rdoc-stubs
xapian.rb ../doxygen-xml/index.xml
@DOCUMENTATION_RULES_TRUE@ $(PERL) $(srcdir)/generate-rdoc-stubs
@DOCUMENTATION_RULES_TRUE at...
2016 Feb 03
0
[PATCH 2/3] daemon: glob: add option for not returning dirs with trailing slash
...uot;paths", [Pathname "pattern"], [];
+ style = RStringList "paths", [Pathname "pattern"], [OBool "nodirectoryslash"];
proc_nr = Some 113;
+ once_had_no_optargs = true;
tests = [
InitScratchFS, Always, TestResult (
[["mkdir_p"; "/glob_expand/b/c"];
["touch"; "/glob_expand/b/c/d"];
["touch"; "/glob_expand/b/c/e"];
- ["glob_expand"; "/glob_expand/b/c/*"]],
+ ["glob_expand"; "/glob_expand/b/c/*"...
2015 Oct 22
2
[PATCH 1/2] build: isolate common po-docs logic
...quot;*** You need to run the following commands:"; \
- echo "*** rm po-docs/podfiles; make -C po-docs update-po"; \
- echo "*** After that, rerun make."; \
- echo "***"; \
- exit 1; \
- fi
-
-# XXX Can automake do this properly?
-install-data-hook:
- $(MKDIR_P) $(DESTDIR)$(mandir)/$(LINGUA)/man1
- $(INSTALL) -m 0644 $(srcdir)/*.1 $(DESTDIR)$(mandir)/$(LINGUA)/man1
- $(MKDIR_P) $(DESTDIR)$(mandir)/$(LINGUA)/man3
- $(INSTALL) -m 0644 $(srcdir)/*.3 $(DESTDIR)$(mandir)/$(LINGUA)/man3
- $(MKDIR_P) $(DESTDIR)$(mandir)/$(LINGUA)/man5
- $(INSTALL) -m 0644 $(srcd...
2006 Mar 21
4
Broken config/lighttpd.conf? (in EdgeRails)
I''m using Mac OS X, I installed Ruby/Rails/lighttpd/etc via the
instructions from hivelogic. I think I''ve found a bug with
EdgeRails, but I''m not sure how to submit it (and maybe I''m doing
something wrong and someone can just point me in the right
direction). Anyway I thought I''d report it just in case it is a bug.
I''ve downloaded
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.
2015 Aug 11
1
Re: [PATCH 1/2] mllib: add normalize_arch helper
...++
> > 2 files changed, 15 insertions(+), 2 deletions(-)
> >
> > diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
> > index f9e8996..ca6d470 100644
> > --- a/mllib/common_utils.ml
> > +++ b/mllib/common_utils.ml
> > @@ -730,13 +730,21 @@ let rec mkdir_p path permissions =
> > mkdir_p (Filename.dirname path) permissions;
> > Unix.mkdir path permissions
> >
> > +let normalize_arch = function
> > + | "i386" | "i486" | "i586" | "i686" -> "i386"
> > +...
2016 Aug 03
2
[PATCH] firstboot: rename systemd service file
...insertions(+), 2 deletions(-)
diff --git a/customize/firstboot.ml b/customize/firstboot.ml
index f1e5807..6d7b065 100644
--- a/customize/firstboot.ml
+++ b/customize/firstboot.ml
@@ -122,10 +122,27 @@ WantedBy=default.target
*)
let unitdir = "/usr/lib/systemd/system" in
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 &...
2014 Oct 31
3
[PATCH] Fix, simplify out-of-tree build/install for bash completions
...ON
bashcompletiondir = $(BASH_COMPLETIONS_DIR)
#bashcompletion_DATA = $(scripts)
-all-local: $(scripts)
+all-local: $(scripts) $(symlinks)
+ test $(srcdir) != $(builddir) && cd $(srcdir) && cp $(scripts) $(abs_builddir)/
-install-data-local: $(scripts)
+install-data-local:
$(mkdir_p) $(DESTDIR)$(bashcompletiondir)
- cp -d $(scripts) $(DESTDIR)$(bashcompletiondir)
+ cp -d $(scripts) $(symlinks) $(DESTDIR)$(bashcompletiondir)
+
+clean-local:
+ test $(srcdir) != $(builddir) && rm -f $(symlinks) $(scripts)
endif
--
2.1.1