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

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

Loading…
Cancel
Save