From 03edd7a4b89116a60c9b8237d100eb2c41cbb8a8 Mon Sep 17 00:00:00 2001 From: J M Date: Mon, 20 Dec 2021 13:48:55 -0700 Subject: [PATCH] wip: Removing swap --- appmgr/src/disk/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appmgr/src/disk/main.rs b/appmgr/src/disk/main.rs index 045cd9124..ac291503a 100644 --- a/appmgr/src/disk/main.rs +++ b/appmgr/src/disk/main.rs @@ -157,7 +157,7 @@ pub async fn create_all_fs>( password: &str, ) -> Result<(), Error> { create_fs(guid, &datadir, "main", MAIN_FS_SIZE, false, password).await?; - create_fs(guid, &datadir, "swap", SWAP_SIZE, true, password).await?; + // create_fs(guid, &datadir, "swap", SWAP_SIZE, true, password).await?; create_fs( guid, &datadir, @@ -198,7 +198,7 @@ pub async fn unmount_fs>( #[instrument(skip(datadir))] pub async fn unmount_all_fs>(guid: &str, datadir: P) -> Result<(), Error> { unmount_fs(guid, &datadir, "main", false).await?; - unmount_fs(guid, &datadir, "swap", true).await?; + // unmount_fs(guid, &datadir, "swap", true).await?; unmount_fs(guid, &datadir, "package-data", false).await?; Command::new("dmsetup") .arg("remove_all") // TODO: find a higher finesse way to do this for portability reasons @@ -295,7 +295,7 @@ pub async fn mount_all_fs>( password: &str, ) -> Result<(), Error> { mount_fs(guid, &datadir, "main", false, password).await?; - mount_fs(guid, &datadir, "swap", true, password).await?; + // mount_fs(guid, &datadir, "swap", true, password).await?; mount_fs(guid, &datadir, "package-data", false, password).await?; Ok(()) }