correct flash drive size

This commit is contained in:
Aaron Honeycutt 2025-04-09 20:50:45 -06:00
parent e47764618a
commit df9d271f42

View file

@ -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:");