|
|
|
@ -14,6 +14,7 @@ pub enum BaseTask {
|
|
|
|
|
InstallBase,
|
|
|
|
|
InstallBootloader,
|
|
|
|
|
InstallDesktop,
|
|
|
|
|
InstallKernels,
|
|
|
|
|
InstallExtraPackages,
|
|
|
|
|
SetupRootUser,
|
|
|
|
|
SetupUsers,
|
|
|
|
@ -64,6 +65,10 @@ impl BaseTask {
|
|
|
|
|
task_name: "setup-users",
|
|
|
|
|
config_key: Some("users"),
|
|
|
|
|
},
|
|
|
|
|
BaseTask::InstallKernels => BaseTaskKeydata {
|
|
|
|
|
task_name: "install-kernels",
|
|
|
|
|
config_key: Some("kernels"),
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -103,6 +108,21 @@ impl TaskTrait for BaseTask {
|
|
|
|
|
task_config,
|
|
|
|
|
}))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn order(&self) -> usize {
|
|
|
|
|
match self {
|
|
|
|
|
BaseTask::CreatePartitions => 10,
|
|
|
|
|
BaseTask::InstallBase => 20,
|
|
|
|
|
BaseTask::InstallKernels => 30,
|
|
|
|
|
BaseTask::InstallBootloader => 40,
|
|
|
|
|
BaseTask::ConfigureLocale => 50,
|
|
|
|
|
BaseTask::ConfigureNetwork => 60,
|
|
|
|
|
BaseTask::SetupRootUser => 70,
|
|
|
|
|
BaseTask::SetupUsers => 80,
|
|
|
|
|
BaseTask::InstallDesktop => 90,
|
|
|
|
|
BaseTask::InstallExtraPackages => 100,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lazy_static! {
|
|
|
|
@ -120,5 +140,6 @@ fn get_all_base_tasks() -> Vec<BaseTask> {
|
|
|
|
|
BaseTask::InstallExtraPackages,
|
|
|
|
|
BaseTask::SetupRootUser,
|
|
|
|
|
BaseTask::SetupUsers,
|
|
|
|
|
BaseTask::InstallKernels,
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|