diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-06 04:49:16 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-06 04:49:16 -0600 |
commit | d71a5c29f6d22d2fb18bd483333eaf37b827fd0d (patch) | |
tree | 23c07f696d7281906e3e6f1fb7732a6c62a1b08a | |
parent | 2d4b44aa8b892b3cfd94001b9a8b26579a3cdd85 (diff) | |
download | horizon-d71a5c29f6d22d2fb18bd483333eaf37b827fd0d.tar.gz horizon-d71a5c29f6d22d2fb18bd483333eaf37b827fd0d.tar.bz2 horizon-d71a5c29f6d22d2fb18bd483333eaf37b827fd0d.tar.xz horizon-d71a5c29f6d22d2fb18bd483333eaf37b827fd0d.zip |
Qt UI: Ensure kernel is installed, and GRUB if selected
-rw-r--r-- | ui/qt5/horizonwizard.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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; |