From d71a5c29f6d22d2fb18bd483333eaf37b827fd0d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 6 Dec 2019 04:49:16 -0600 Subject: Qt UI: Ensure kernel is installed, and GRUB if selected --- ui/qt5/horizonwizard.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc index 75598cb..6b44d49 100644 --- a/ui/qt5/horizonwizard.cc +++ b/ui/qt5/horizonwizard.cc @@ -345,6 +345,13 @@ QString HorizonWizard::toHScript() { break; } + if(this->grub) { + lines << "pkginstall grub"; + } + + lines << ("pkginstall " + QString::fromStdString(this->kernel) + " " + + QString::fromStdString(this->kernel) + "-modules"); + char *root = encrypt_pw(field("rootpw").toString().toStdString().c_str()); Q_ASSERT(root != nullptr); lines << QString("rootpw ") + root; -- cgit v1.2.3-70-g09d2