"kernel",
"network",
"kernel-tools",
+ "passwd",
],
# Set the default swap size to 1 GiB
disk.CreateFilesystems,
disk.MountFilesystems,
packages.InstallPackages,
+ step.SetRootPassword,
bootloaders.InstallBootloader,
# Done!
self.bricklayer.settings["root-password"] = password
+class SetRootPassword(Step):
+ def run(self):
+ with self.tui.progress(_("Applying Configuration"),
+ _("Setting password for the '%s' user...")) as t:
+ p = self.bricklayer.setup_pakfire()
+
+ # XXX execute currently has no way to write to stdin, which is
+ # why we reset the root password here, so that we will have a working login
+ p.execute(["passwd", "--delete", "root"])
+
+
class ToggleFirstInstallStatus(Step):
first_install = True