switch to using Command for mounting instead of the nix crate for now

This commit is contained in:
Aaron Honeycutt 2025-04-11 21:46:26 -06:00
parent db4741c423
commit 1498465df6

View file

@ -96,6 +96,7 @@ fn mount_root() {
// Creates the boot directory in /mnt/boot // Creates the boot directory in /mnt/boot
let _create_boot_directory = Command::new("mkdir") let _create_boot_directory = Command::new("mkdir")
.arg("-p")
.arg("/mnt/boot") .arg("/mnt/boot")
.output() .output()
.expect("Failed to create boot directory"); .expect("Failed to create boot directory");
@ -221,8 +222,20 @@ fn main() {
format_partitions(); format_partitions();
// Mounting the partitions // Mounting the partitions
mount_root(); // mount_root();
mount_boot(); // 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 // Download nix files
grab_flake(); grab_flake();