mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
switch to using Command for mounting instead of the nix crate for now
This commit is contained in:
parent
db4741c423
commit
1498465df6
1 changed files with 15 additions and 2 deletions
17
src/main.rs
17
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue