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