use Command for mounting the boot partition due to mount options

This commit is contained in:
Aaron Honeycutt 2025-04-21 19:09:12 -06:00
parent 7408808467
commit 7ba1ccb07a

View file

@ -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() {