mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
use Command for mounting the boot partition due to mount options
This commit is contained in:
parent
7408808467
commit
7ba1ccb07a
1 changed files with 16 additions and 8 deletions
24
src/main.rs
24
src/main.rs
|
@ -93,14 +93,22 @@ fn mount_partitions(drive_name: &str) {
|
||||||
let boot_source = Some(Path::new(&efi_path));
|
let boot_source = Some(Path::new(&efi_path));
|
||||||
let boot_target = Path::new("/mnt/boot");
|
let boot_target = Path::new("/mnt/boot");
|
||||||
|
|
||||||
mount(
|
let _mount_boot = Command::new("mount")
|
||||||
boot_source,
|
.args(["-t", "vfat"])
|
||||||
boot_target,
|
.args(["-o", "umask=0077"])
|
||||||
Some("vfat"),
|
.arg(&efi_path)
|
||||||
MsFlags::empty(),
|
.arg("/mnt/boot")
|
||||||
None::<&[u8]>,
|
.output()
|
||||||
)
|
.expect("Failed to mount boot partition");
|
||||||
.expect("Failed to mount boot partition");
|
|
||||||
|
// mount(
|
||||||
|
// boot_source,
|
||||||
|
// boot_target,
|
||||||
|
// Some("vfat"),
|
||||||
|
// MsFlags::empty(),
|
||||||
|
// None::<&[u8]>,
|
||||||
|
// )
|
||||||
|
// .expect("Failed to mount boot partition");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn grab_flake() {
|
fn grab_flake() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue