예제 #1
0
    def set_root_password_with_task(self):
        """Return the root password configuration task.

        :returns: a root password configuration task
        """
        return SetRootPasswordTask(sysroot=conf.target.system_root,
                                   password=self.root_password,
                                   crypted=self.root_password_is_crypted,
                                   locked=self.root_account_locked)
예제 #2
0
파일: users.py 프로젝트: gpchelkin/anaconda
    def set_root_password_with_task(self, sysroot):
        """Return the root password configuration task.

        :param str sysroot: a path to the root of the installed system
        :returns: object path of the root password configuration task
        """
        task = SetRootPasswordTask(sysroot=sysroot,
                                   password=self.root_password,
                                   crypted=self.root_password_is_crypted,
                                   locked=self.root_account_locked)
        return self.publish_task(USERS.namespace, task)
예제 #3
0
    def set_root_password_with_task(self):
        """Return the root password configuration task.

        :returns: object path of the root password configuration task
        """
        task = SetRootPasswordTask(
            sysroot=conf.target.system_root,
            password=self.root_password,
            crypted=self.root_password_is_crypted,
            locked=self.root_account_locked
        )
        return self.publish_task(USERS.namespace, task)