mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
add boot permission fix
This commit is contained in:
parent
4dccfd16b1
commit
0cd5007ae7
1 changed files with 11 additions and 0 deletions
11
src/main.rs
11
src/main.rs
|
@ -228,6 +228,17 @@ fn main() {
|
||||||
.output()
|
.output()
|
||||||
.expect("Failed to move nix files over");
|
.expect("Failed to move nix files over");
|
||||||
|
|
||||||
|
// Fixes a security issue with boot
|
||||||
|
let _boot_fix = Command::new("sed")
|
||||||
|
.arg("-i")
|
||||||
|
.arg(r#"/fsType = "vfat"/ {
|
||||||
|
n
|
||||||
|
s/\(options = \[.*\)\]/\1"umask=0077 "]/
|
||||||
|
}"#)
|
||||||
|
.arg("/mnt/etc/nixos/hardware-configuration.nix")
|
||||||
|
.output()
|
||||||
|
.expect("Failed to apply boot fix");
|
||||||
|
|
||||||
// Host selection
|
// Host selection
|
||||||
loop {
|
loop {
|
||||||
println!("");
|
println!("");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue