json fix, set correct bootloader location

pull/2/head
axtlos 3 years ago
parent 3131fabca2
commit 718d773828

@ -14,6 +14,7 @@ class installPrefs {
final String disk;
final bool isEfi;
final String bootloader;
final String bootloaderLocation;
final String hostname;
final bool ipv6;
final bool enableTimeshift;
@ -30,6 +31,7 @@ class installPrefs {
this.disk = "",
this.isEfi = false,
this.bootloader = "",
this.bootloaderLocation = "",
this.hostname = "",
this.ipv6 = false,
this.enableTimeshift = false,
@ -43,7 +45,7 @@ class installPrefs {
},
"bootloader": {
"type": bootloader,
"location": "/boot/efi",
"location": bootloaderLocation,
},
"locale": {
"locale": [

@ -48,6 +48,7 @@ Widget install(
disk: disk.replaceAll("/dev/", ""),
isEfi: isEfi,
bootloader: bootloader,
bootloaderLocation: isEfi ? "/boot/efi" : disk,
hostname: hostname,
ipv6: ipv6,
enableTimeshift: enableTimeshift,

Loading…
Cancel
Save