diff --git a/lib/classes/installPrefs.dart b/lib/classes/installPrefs.dart index 9026093..f1a3b82 100644 --- a/lib/classes/installPrefs.dart +++ b/lib/classes/installPrefs.dart @@ -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": [ diff --git a/lib/functions/install.dart b/lib/functions/install.dart index bf49077..3005c45 100644 --- a/lib/functions/install.dart +++ b/lib/functions/install.dart @@ -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,