# Path: pyanaconda/iutil.py
# def augmentEnv():
# def _run_program(argv, root='/', stdin=None, stdout=None, env_prune=None, log_output=True, binary_output=False):
#     def chroot():
# def setSysroot(path):
# def getSysroot():
# def execInSysimageRoot(command, argv, **kwargs):
# def execWithRedirect(command, argv, stdin=None, stdout=None,
#                      stderr=None, root='/', env_prune=[], log_output=True, binary_output=False):
# def execWithCapture(command, argv, stdin=None, stderr=None, root='/',
#                     fatal=False, log_output=True):
# def execReadlines(command, argv, stdin=None, root='/', env_prune=None):
#     def queue_lines(out, queue):
#     def chroot():
# def execConsole():
# def getDirSize(dir):
#     def getSubdirSize(dir):
# def mkdirChain(dir):
# def get_active_console(dev="console"):
# def isConsoleOnVirtualTerminal(dev="console"):
# def strip_markup(text):
# def reIPL(ipldev):
# def resetRpmDb():
# def parseNfsUrl(nfsurl):
# def add_po_path(module, dir):
# def setup_translations(module):
# def fork_orphan():
# def _run_systemctl(command, service):
# def start_service(service):
# def stop_service(service):
# def restart_service(service):
# def service_running(service):
# def dracut_eject(device):
# def vtActivate(num):
#     def __init__(self, url=None, protocol="http://", host=None, port="3128",
#                  username=None, password=None):
#     def parse_url(self):
#     def parse_components(self):
#     def dict(self):
#     def __str__(self):
# def getdeepattr(obj, name):
# def setdeepattr(obj, name, value):
# def strip_accents(s):
# def cmp_obj_attrs(obj1, obj2, attr_list):
# def dir_tree_map(root, func, files=True, dirs=True):
# def chown_dir_tree(root, uid, gid, from_uid_only=None, from_gid_only=None):
#     def conditional_chown(path, uid, gid, from_uid=None, from_gid=None):
# def is_unsupported_hw():
# def upcase_first_letter(text):
#     def __init__(self, **kwargs):
#     def __getattr__(self, attr):
#     def __setattr__(self, attr, value):
#     def copy(self):
# def get_mount_paths(devnode):
# class ProxyStringError(Exception):
# class ProxyString(object):
# class DataHolder(dict):
# 
# Path: pyanaconda/flags.py
# class Flags(object):
# class BootArgs(OrderedDict):
#     def __setattr__(self, attr, val):
#     def get(self, attr, val=None):
#     def set_cmdline_bool(self, flag):
#     def __init__(self, read_cmdline=True):
#     def read_cmdline(self):
#     def __init__(self, cmdline=None, files=cmdline_files):
#     def read(self, filenames):
#     def readstr(self, cmdline):
#     def getbool(self, arg, default=False):
# def can_touch_runtime_system(msg):
# 
# Path: pyanaconda/nm.py
# def nm_device_hwaddress(name):
#     """Return device's 'HwAddress' property
# 
#        Exceptions:
#        UnknownDeviceError if device is not found
#        PropertyNotFoundError if property is not found
#     """
#     return nm_device_property(name, "HwAddress")


import collections
import sys
import os
import re
import struct
import blivet
import pyanaconda.network
import logging
        import string
        import crypt
        import random
        import rpm
from parted import PARTITION_BIOS_GRUB
from pyanaconda import iutil
from blivet.devicelibs import mdraid
from pyanaconda.isys import sync
from pyanaconda.product import productName
from pyanaconda.flags import flags
from pyanaconda.constants import *
from blivet.errors import StorageError
from blivet.fcoe import fcoe
from pyanaconda.nm import nm_device_hwaddress
from blivet import platform
from pyanaconda.i18n import _, N_
from blivet.errors import SinglePhysicalVolumeError
        from blivet.devices import NetworkStorageDevice
    from pyanaconda.errors import errorHandler, ERROR_RAISE
    from pyanaconda.errors import errorHandler, ERROR_RAISE
    name = "UBOOT"
    _config_file = "boot.cmd"
    packages = ['uboot-tools', 'arm-boot-config']

    stage2_device_types = ["partition"]

    #
    # configuration
    #

    @property
    def config_dir(self):
        return "/boot"

    @property
    def config_file(self):
        return "%s/%s" % (self.config_dir, self._config_file)

    def write_config_images(self, config):
        stanza = (" ")
        config.write(stanza)


    #
    # installation
    #

    def install(self):
        # a-b-c is a tool that generates a generic boor.scr that works in most situations.
        # not perfect but is better than doing nothing

# Path: pyanaconda/iutil.py
# def augmentEnv():
# def _run_program(argv, root='/', stdin=None, stdout=None, env_prune=None, log_output=True, binary_output=False):
#     def chroot():
# def setSysroot(path):
# def getSysroot():
# def execInSysimageRoot(command, argv, **kwargs):
# def execWithRedirect(command, argv, stdin=None, stdout=None,
#                      stderr=None, root='/', env_prune=[], log_output=True, binary_output=False):
# def execWithCapture(command, argv, stdin=None, stderr=None, root='/',
#                     fatal=False, log_output=True):
# def execReadlines(command, argv, stdin=None, root='/', env_prune=None):
#     def queue_lines(out, queue):
#     def chroot():
# def execConsole():
# def getDirSize(dir):
#     def getSubdirSize(dir):
# def mkdirChain(dir):
# def get_active_console(dev="console"):
# def isConsoleOnVirtualTerminal(dev="console"):
# def strip_markup(text):
# def reIPL(ipldev):
# def resetRpmDb():
# def parseNfsUrl(nfsurl):
# def add_po_path(module, dir):
# def setup_translations(module):
# def fork_orphan():
# def _run_systemctl(command, service):
# def start_service(service):
# def stop_service(service):
# def restart_service(service):
# def service_running(service):
# def dracut_eject(device):
# def vtActivate(num):
#     def __init__(self, url=None, protocol="http://", host=None, port="3128",
#                  username=None, password=None):
#     def parse_url(self):
#     def parse_components(self):
#     def dict(self):
#     def __str__(self):
# def getdeepattr(obj, name):
# def setdeepattr(obj, name, value):
# def strip_accents(s):
# def cmp_obj_attrs(obj1, obj2, attr_list):
# def dir_tree_map(root, func, files=True, dirs=True):
# def chown_dir_tree(root, uid, gid, from_uid_only=None, from_gid_only=None):
#     def conditional_chown(path, uid, gid, from_uid=None, from_gid=None):
# def is_unsupported_hw():
# def upcase_first_letter(text):
#     def __init__(self, **kwargs):
#     def __getattr__(self, attr):
#     def __setattr__(self, attr, value):
#     def copy(self):
# def get_mount_paths(devnode):
# class ProxyStringError(Exception):
# class ProxyString(object):
# class DataHolder(dict):
# 
# Path: pyanaconda/flags.py
# class Flags(object):
# class BootArgs(OrderedDict):
#     def __setattr__(self, attr, val):
#     def get(self, attr, val=None):
#     def set_cmdline_bool(self, flag):
#     def __init__(self, read_cmdline=True):
#     def read_cmdline(self):
#     def __init__(self, cmdline=None, files=cmdline_files):
#     def read(self, filenames):
#     def readstr(self, cmdline):
#     def getbool(self, arg, default=False):
# def can_touch_runtime_system(msg):
# 
# Path: pyanaconda/nm.py
# def nm_device_hwaddress(name):
#     """Return device's 'HwAddress' property
# 
#        Exceptions:
#        UnknownDeviceError if device is not found
#        PropertyNotFoundError if property is not found
#     """
#     return nm_device_property(name, "HwAddress")


# Path: pyanaconda/bootloader.py
import collections
import sys
import os
import re
import struct
import blivet
import pyanaconda.network
import logging
        import string
        import crypt
        import random
        import rpm
from parted import PARTITION_BIOS_GRUB
from pyanaconda import iutil
from blivet.devicelibs import mdraid
from pyanaconda.isys import sync
from pyanaconda.product import productName
from pyanaconda.flags import flags
from pyanaconda.constants import *
from blivet.errors import StorageError
from blivet.fcoe import fcoe
from pyanaconda.nm import nm_device_hwaddress
from blivet import platform
from pyanaconda.i18n import _, N_
from blivet.errors import SinglePhysicalVolumeError
        from blivet.devices import NetworkStorageDevice
    from pyanaconda.errors import errorHandler, ERROR_RAISE
    from pyanaconda.errors import errorHandler, ERROR_RAISE

    name = "UBOOT"
    _config_file = "boot.cmd"
    packages = ['uboot-tools', 'arm-boot-config']

    stage2_device_types = ["partition"]

    #
    # configuration
    #

    @property
    def config_dir(self):
        return "/boot"

    @property
    def config_file(self):
        return "%s/%s" % (self.config_dir, self._config_file)

    def write_config_images(self, config):
        stanza = (" ")
        config.write(stanza)


    #
    # installation
    #

    def install(self):
        # a-b-c is a tool that generates a generic boor.scr that works in most situations.
        # not perfect but is better than doing nothing

        rc = iutil.execWithRedirect("a-b-c", [], root=ROOT_PATH)