mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -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()
|
let root = Partition::builder()
|
||||||
.partition_type(partition_type)
|
.partition_type(partition_type)
|
||||||
.name("Root")
|
.name("Root")
|
||||||
// 132,120,576 sectors for a 64GB flash drive
|
.size_in_sectors(121_634_816)
|
||||||
.size_in_sectors(132_120_576)
|
|
||||||
// 500GB
|
// 500GB
|
||||||
//.size_in_sectors(499_033_071_61)
|
//.size_in_sectors(499_033_071_61)
|
||||||
.build()?;
|
.build()?;
|
||||||
|
@ -138,7 +137,7 @@ fn main() {
|
||||||
grab_config();
|
grab_config();
|
||||||
grab_home();
|
grab_home();
|
||||||
|
|
||||||
let output = Command::new("nixos-generate-config")
|
let nixos_gen_con = Command::new("nixos-generate-config")
|
||||||
.arg("no-file-systems")
|
.arg("no-file-systems")
|
||||||
.arg("--root")
|
.arg("--root")
|
||||||
.arg("/mnt")
|
.arg("/mnt")
|
||||||
|
@ -151,7 +150,7 @@ fn main() {
|
||||||
println!("Host selection");
|
println!("Host selection");
|
||||||
println!("1. Lemur Pro 13 (Garrus)");
|
println!("1. Lemur Pro 13 (Garrus)");
|
||||||
println!("2. Device 2");
|
println!("2. Device 2");
|
||||||
println!("3. Device 3");
|
println!("3. Quit");
|
||||||
println!("");
|
println!("");
|
||||||
|
|
||||||
println!("Enter your host for installation:");
|
println!("Enter your host for installation:");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue