Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    • By default, yum checks if the user is root, and will refuse to install anything if it is not. So edit /tmp/squashfs-root/usr/share/yum-cli/yumcommands.py and change the following code and comment out the relevant code (in red)

 

def checkRootUID(base):
    """Verify that the program is being run by the root user.

    :param base: a :class:`yum.Yumbase` object.
    :raises: :class:`cli.CliError`
    """
    # if base.conf.uid != 0:
    # base.logger.critical(_('You need to be root to perform this command.'))
    # raise cli.CliError

...

  • After the above change, you can start using the image, installing rpms or do other customization, such as

...