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
22
src/main.rs
22
src/main.rs
|
@ -93,14 +93,22 @@ fn mount_partitions(drive_name: &str) {
|
|||
let boot_source = Some(Path::new(&efi_path));
|
||||
let boot_target = Path::new("/mnt/boot");
|
||||
|
||||
mount(
|
||||
boot_source,
|
||||
boot_target,
|
||||
Some("vfat"),
|
||||
MsFlags::empty(),
|
||||
None::<&[u8]>,
|
||||
)
|
||||
let _mount_boot = Command::new("mount")
|
||||
.args(["-t", "vfat"])
|
||||
.args(["-o", "umask=0077"])
|
||||
.arg(&efi_path)
|
||||
.arg("/mnt/boot")
|
||||
.output()
|
||||
.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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue