diff --git a/lib/functions/install.dart b/lib/functions/install.dart index d7d66f7..bf49077 100644 --- a/lib/functions/install.dart +++ b/lib/functions/install.dart @@ -45,7 +45,7 @@ Widget install( enableSudo: enableSudo, rootPass: rootPass, desktop: desktop, - disk: disk, + disk: disk.replaceAll("/dev/", ""), isEfi: isEfi, bootloader: bootloader, hostname: hostname, diff --git a/lib/main.dart b/lib/main.dart index d4abe9c..a19e747 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -21,7 +21,7 @@ Future checkIsEfi(setState) async { .then((ProcessResult result) { return result.stdout; }); - bool isEfi = scriptOutput == "UEFI" ? false : true; + bool isEfi = scriptOutput == "UEFI" ? true : false; debugPrint(isEfi.toString()); debugPrint(scriptOutput); setState(isEfi);