Displaying 4 results from an estimated 4 matches for "mount_cmd".
2010 Oct 26
0
[PATCH node] add install.py
..."e2label %s RootNew" % candidate_dev
+ rc = os.system(e2label_cmd)
+ if rc != 0:
+ log("root partition not available.")
+ label_debug = os.listdir("ls -al /dev/disk/by-label")
+ log(label_debug)
+ return rc
+ mount_cmd = "mount %s /liveos" % candidate_dev
+ os.system(mount_cmd)
+ os.system("rm -rf /liveos/LiveOS")
+ os.system("mkdir -p /liveos/LiveOS")
+
+ # install oVirt Node image for local boot
+ if os.path.exists("/live/syslinux"):
+ sy...
2017 Jul 21
0
[PATCH v2 15/23] daemon: Reimplement ‘btrfs_subvolume_list’ and ‘btrfs_subvolume_get_default’ in OCaml.
...with_mounted cmd f
+
+ | MountableBtrfsVol subvol ->
+ let cmd tmpdir =
+ ignore (command "mount" ["-o"; "subvol=" ^ subvol (* XXX quoting? *);
+ mountable.m_device; tmpdir]) in
+ _with_mounted cmd f
+
+and _with_mounted mount_cmd f =
+ let tmpdir = Mkdtemp.temp_dir "btrfs" in
+
+ (* This is the cleanup function which is called to unmount and
+ * remove the temporary directory. This is called on error and
+ * ordinary exit paths.
+ *)
+ let finally () =
+ ignore (Sys.command (sprintf "umount %s&qu...
2017 Jul 21
27
[PATCH v2 00/23] Reimplement many daemon APIs in OCaml.
v1 was posted here:
https://www.redhat.com/archives/libguestfs/2017-July/msg00098.html
This series now depends on two small patches which I posted separately:
https://www.redhat.com/archives/libguestfs/2017-July/msg00207.html
https://www.redhat.com/archives/libguestfs/2017-July/msg00209.html
v1 -> v2:
- Previously changes to generator/daemon.ml were made incrementally
through the patch
2017 Jul 27
23
[PATCH v3 00/23] Reimplement many daemon APIs in OCaml.
I think this fixes everything mentioned:
- Added the Optgroups module as suggested.
- Remove command temporary files.
- Replace command ~flags with ?fold_stdout_on_stderr.
- Nest _with_mounted function.
- Rebase & retest.
Rich.