summaryrefslogtreecommitdiff
path: root/ui/qt5/horizonwizard.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-06 21:00:29 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-06 21:00:29 -0600
commitbc55542a602637ea4169b084c1b78aada0382ee7 (patch)
tree07def4734d0608e97b0172eed104d7de068e32c4 /ui/qt5/horizonwizard.cc
parentd3728b38b12b2f9762ba26fc6fc302cb79f7ee6c (diff)
downloadhorizon-bc55542a602637ea4169b084c1b78aada0382ee7.tar.gz
horizon-bc55542a602637ea4169b084c1b78aada0382ee7.tar.bz2
horizon-bc55542a602637ea4169b084c1b78aada0382ee7.tar.xz
horizon-bc55542a602637ea4169b084c1b78aada0382ee7.zip
Qt UI: Implement UI.Packages.Choices requirements
Diffstat (limited to 'ui/qt5/horizonwizard.cc')
-rw-r--r--ui/qt5/horizonwizard.cc32
1 files changed, 32 insertions, 0 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc
index 4c12d72..50c526d 100644
--- a/ui/qt5/horizonwizard.cc
+++ b/ui/qt5/horizonwizard.cc
@@ -48,6 +48,7 @@ extern "C" {
#include "datetimepage.hh"
#include "hostnamepage.hh"
#include "pkgsimple.hh"
+#include "pkgdefaults.hh"
#include "bootpage.hh"
#include "rootpwpage.hh"
#include "accountpage.hh"
@@ -180,7 +181,11 @@ HorizonWizard::HorizonWizard(QWidget *parent) : QWizard(parent) {
* Determine which platform kernel is being used, if any (-power8 etc)
* Determine hardware requirements (easy or mainline)
*/
+ grub = true;
kernel = "easy-kernel";
+ binsh = Dash;
+ sbininit = S6;
+ eudev = true;
/* REQ: UI.Global.Back.Save */
setOption(IndependentPages);
@@ -202,6 +207,7 @@ HorizonWizard::HorizonWizard(QWidget *parent) : QWizard(parent) {
setPage(Page_DateTime, new DateTimePage);
setPage(Page_Hostname, new HostnamePage);
setPage(Page_PkgSimple, new PkgSimplePage);
+ setPage(Page_PkgCustomDefault, new PkgDefaultsPage);
setPage(Page_Boot, new BootPage);
setPage(Page_Root, new RootPassphrasePage);
setPage(Page_Accounts, new AccountPage);
@@ -358,6 +364,32 @@ QString HorizonWizard::toHScript() {
lines << "pkginstall grub";
}
+ switch(this->binsh) {
+ case Dash:
+ lines << "pkginstall dash-binsh";
+ break;
+ case Bash:
+ lines << "pkginstall bash-binsh";
+ break;
+ }
+
+ switch(this->sbininit) {
+ case S6:
+ lines << "pkginstall s6-linux-init";
+ break;
+ case SysVInit:
+ lines << "pkginstall sysvinit";
+ break;
+ }
+
+ if(this->eudev) {
+ lines << "pkginstall eudev";
+ } else {
+ lines << "pkginstall mdevd";
+ }
+
+ lines << "pkginstall sysklogd";
+
lines << ("pkginstall " + QString::fromStdString(this->kernel) + " " +
QString::fromStdString(this->kernel) + "-modules");