mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 02:54:03 -06:00
correct flash drive size
This commit is contained in:
parent
e47764618a
commit
df9d271f42
1 changed files with 3 additions and 4 deletions
|
@ -34,8 +34,7 @@ fn format_drive(drive_name: &str) -> rsfdisk::Result<()> {
|
|||
let root = Partition::builder()
|
||||
.partition_type(partition_type)
|
||||
.name("Root")
|
||||
// 132,120,576 sectors for a 64GB flash drive
|
||||
.size_in_sectors(132_120_576)
|
||||
.size_in_sectors(121_634_816)
|
||||
// 500GB
|
||||
//.size_in_sectors(499_033_071_61)
|
||||
.build()?;
|
||||
|
@ -138,7 +137,7 @@ fn main() {
|
|||
grab_config();
|
||||
grab_home();
|
||||
|
||||
let output = Command::new("nixos-generate-config")
|
||||
let nixos_gen_con = Command::new("nixos-generate-config")
|
||||
.arg("no-file-systems")
|
||||
.arg("--root")
|
||||
.arg("/mnt")
|
||||
|
@ -151,7 +150,7 @@ fn main() {
|
|||
println!("Host selection");
|
||||
println!("1. Lemur Pro 13 (Garrus)");
|
||||
println!("2. Device 2");
|
||||
println!("3. Device 3");
|
||||
println!("3. Quit");
|
||||
println!("");
|
||||
|
||||
println!("Enter your host for installation:");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue