Package pyanaconda :: Module iutil
[hide private]
[frames] | no frames]

Module iutil

source code

Classes [hide private]
  ExecProduct
  tee
Functions [hide private]
 
execWithRedirect(command, argv, stdin=None, stdout=None, stderr=None, root='/') source code
 
execWithCapture(command, argv, stdin=None, stderr=None, root='/') source code
 
execWithCallback(command, argv, stdin=None, stdout=None, stderr=None, echo=True, callback=None, callback_data=None, root='/') source code
 
_pulseProgressCallback(data, callback_data=None) source code
 
execWithPulseProgress(command, argv, stdin=None, stdout=None, stderr=None, echo=True, progress=None, root='/') source code
 
execConsole() source code
 
getDirSize(dir) source code
 
memAvailable() source code
 
memInstalled() source code
 
swapSuggestion(quiet=0) source code
 
mkdirChain(dir) source code
 
swapAmount() source code
 
copyDeviceNode(src, dest) source code
 
getSparcMachine() source code
 
getPPCMachine() source code
 
getPPCMacID() source code
 
getPPCMacGen() source code
 
getPPCMacBook() source code
 
isCell() source code
 
isMactel() source code
 
isEfi() source code
 
isX86(bits=None) source code
 
isPPC(bits=None) source code
 
isS390() source code
 
isIA64() source code
 
isAlpha() source code
 
isSparc() source code
 
getArch() source code
 
isConsoleOnVirtualTerminal() source code
 
strip_markup(text) source code
 
notify_kernel(path, action="change")
Signal the kernel that the specified device has changed.
source code
 
get_sysfs_path_by_name(dev_node, class_name="block")
Return sysfs path for a given device.
source code
 
numeric_type(num)
Verify that a value is given as a numeric data type.
source code
 
reIPL(anaconda, loader_pid) source code
 
resetRpmDb() source code
 
parseNfsUrl(nfsurl) source code
 
insert_colons(a_string)
Insert colon between every second character.
source code
 
add_po_path(module, dir)
Looks to see what translations are under a given path and tells the gettext module to use that path as the base dir
source code
 
setup_translations(module) source code
 
copy_to_sysimage(source) source code
 
get_sysfs_attr(path, attr) source code
 
find_program_in_path(prog, raise_on_error=False) source code
 
fork_orphan()
Forks an orphan.
source code
 
lsmod()
Returns list of names of all loaded modules.
source code
 
dracut_eject(device)
Use dracut shutdown hook to eject media after the system is shutdown.
source code
Variables [hide private]
  _ = lambda x:
  log = logging.getLogger("anaconda")
  program_log = logging.getLogger("program")
  cell = None
hash(x)
  mactel = None
hash(x)
  efi = None
hash(x)
Function Details [hide private]

notify_kernel(path, action="change")

source code 

Signal the kernel that the specified device has changed.

Exceptions raised: ValueError, IOError

get_sysfs_path_by_name(dev_node, class_name="block")

source code 

Return sysfs path for a given device.

For a device node (e.g. /dev/vda2) get the respective sysfs path (e.g. /sys/class/block/vda2). This also has to work for device nodes that are in a subdirectory of /dev like '/dev/cciss/c0d0p1'.

numeric_type(num)

source code 

Verify that a value is given as a numeric data type.

Return the number if the type is sensible or raise ValueError if not.

insert_colons(a_string)

source code 

Insert colon between every second character.

E.g. creates 'al:go:ri:th:ms' from 'algoritms'. Useful for formatting MAC addresses and wwids for output.

fork_orphan()

source code 

Forks an orphan.

Returns 1 in the parent and 0 in the orphaned child.

dracut_eject(device)

source code 

Use dracut shutdown hook to eject media after the system is shutdown. This is needed because we are running from the squashfs.img on the media so ejecting too early will crash the installer.