From 1498465df61bb5da86d0befadb522e5c8fce5ea8 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Fri, 11 Apr 2025 21:46:26 -0600 Subject: [PATCH] switch to using Command for mounting instead of the nix crate for now --- src/main.rs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4b31ef4..c279f56 100644 --- a/src/main.rs +++ b/src/main.rs @@ -96,6 +96,7 @@ fn mount_root() { // Creates the boot directory in /mnt/boot let _create_boot_directory = Command::new("mkdir") + .arg("-p") .arg("/mnt/boot") .output() .expect("Failed to create boot directory"); @@ -221,8 +222,20 @@ fn main() { format_partitions(); // Mounting the partitions - mount_root(); - mount_boot(); + // mount_root(); + // mount_boot(); + + let _mount_root = Command::new("mount") + .arg("/dev/sda2") + .arg("/mnt") + .output() + .expect("Failed to mount root"); + + let _mount_boot = Command::new("mount") + .arg("/dev/sda1") + .arg("/mnt/boot") + .output() + .expect("Failed to mount root"); // Download nix files grab_flake();