From f08064f2bad6845dc1ee58404450958c3352802b Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 5 Nov 2018 10:47:11 +0200 Subject: [PATCH] No need to call sync --- src/error.rs | 3 --- src/main.rs | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/error.rs b/src/error.rs index 4c7bc1b..2772564 100644 --- a/src/error.rs +++ b/src/error.rs @@ -46,9 +46,6 @@ pub enum ErrorKind { #[fail(display = "Bootloader error")] Bootloader, - #[fail(display = "Error calling sync")] - Sync, - #[fail(display = "Error caused by the interactive mode")] Interactive, } diff --git a/src/main.rs b/src/main.rs index c04d88c..18c463e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,7 +62,6 @@ struct CreateCommand { fn create(command: CreateCommand) -> Result<(), Error> { let sgdisk = Tool::find("sgdisk")?; - let sync = Tool::find("sync")?; let pacstrap = Tool::find("pacstrap")?; let arch_chroot = Tool::find("arch-chroot")?; let genfstab = Tool::find("genfstab")?; @@ -195,7 +194,6 @@ fn create(command: CreateCommand) -> Result<(), Error> { info!("Unmounting filesystems"); drop(mount_stack); - sync.execute().run(ErrorKind::Sync)?; Ok(()) }