diff --git a/src/main.rs b/src/main.rs index 7722de5..3e2befb 100644 --- a/src/main.rs +++ b/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]>, - ) - .expect("Failed to mount boot partition"); + 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() {