0.2.9 - require fusermount

parent 771f201a
......@@ -723,7 +723,7 @@ dependencies = [
[[package]]
name = "redoxer"
version = "0.2.8"
version = "0.2.9"
dependencies = [
"dirs 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
"proc-mounts 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
......
[package]
name = "redoxer"
version = "0.2.8"
version = "0.2.9"
description = "Method for quickly running programs inside of Redox from a KVM capable OS."
license = "MIT"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
......
......@@ -5,6 +5,7 @@ RUN apt-get update -qq && \
apt-get install -y -qq \
build-essential \
curl \
fuse \
libfuse-dev \
pkg-config \
qemu-system-x86
......
......@@ -147,25 +147,26 @@ fn archive_free_space(disk_path: &Path, folder_path: &Path, bootloader_path: &Pa
fn inner(arguments: &[String], folder_opt: Option<String>, gui: bool) -> io::Result<i32> {
let kvm = Path::new("/dev/kvm").exists();
if ! installed("qemu-system-x86_64")? {
eprintln!("redoxer: qemu-system-x86 not found, please install before continuing");
process::exit(1);
}
let fuse = Path::new("/dev/fuse").exists();
if ! fuse && ! installed("tar")? {
if fuse {
if ! installed("fusermount")? {
eprintln!("redoxer: fuse not found, please install before continuing");
process::exit(1);
}
if ! installed("redoxfs")? {
eprintln!("redoxer: redoxfs not found, please install before continuing");
process::exit(1);
}
} else if ! installed("tar")? {
eprintln!("redoxer: tar not found, please install before continuing");
process::exit(1);
}
if fuse && ! installed("redoxfs")? {
eprintln!("redoxer: redoxfs not found, installing with cargo");
Command::new("cargo")
.arg("install")
.arg("redoxfs")
.status()
.and_then(status_error)?;
}
let bootloader_bin = bootloader()?;
let base_bin = base(&bootloader_bin, gui, fuse)?;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment