Module ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults Str body For NameStore TupleLoad Str Str body If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad NameLoad body Return NameLoad Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults Str body For NameStore TupleLoad Str Str body If Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad NameLoad body Return NameLoad Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults Str body For NameStore TupleLoad Str Str Str Str body If Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad NameLoad body Return NameLoad Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults Str body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore ListLoad NameLoad Str If NameLoad body Assign SubscriptStore NameLoad Slice Num ListLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp CompareGt Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Num Num Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body For NameStore TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults Str body For NameStore TupleLoad Str Str Str Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str Str body Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return BinOpAdd Str NameLoad Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword BoolOpOr NameLoad Str If NameLoad body Return NameLoad Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword BoolOpOr NameLoad Str If NameLoad body Return NameLoad Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad keyword NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Assign NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str If CompareNotEq NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad orelse AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore Str With Call NameLoad BinOpAdd NameLoad Str Str keyword Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad keyword NameLoad With Call NameLoad BinOpAdd NameLoad Str Str keyword Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Num Assign NameStore ListLoad Str If NameLoad body Assign SubscriptStore NameLoad Slice Num ListLoad Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad Num NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str body If BoolOpOr CompareIn NameLoad TupleLoad Str Str CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpMod Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad keyword NameLoad For NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad body If BoolOpOr CompareIn NameLoad TupleLoad Str Str CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad BinOpAdd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str Str Num body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad With Call NameLoad BinOpAdd NameLoad Str Str keyword Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad For NameStore NameLoad body Assign NameStore ListLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad orelse If NameLoad body Assign SubscriptStore NameLoad Slice Num ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str Num NameLoad body With Call NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad Str Call NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Slice Num ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str Num NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str With Call NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Call NameLoad Str BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str Num NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Yield Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults Str body For NameStore TupleLoad Str Str body If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return NameLoad Raise Call AttributeLoad NameLoad attr Str decorator_list
N/A io open N/A os N/A re N/A shutil N/A six contextlib contextmanager bareon errors bareon.openstack.common log logging bareon.utils utils N/A LOG N/A N/A logging getLogger __name__ guess_grub2_conf N/A N/A chroot N/A N/A N/A filename N/A /boot/grub2/grub.cfg /boot/grub/grub.cfg N/A N/A N/A N/A N/A os path isdir N/A N/A N/A os path dirname N/A chroot filename N/A N/A filename N/A N/A N/A errors GrubUtilsError grub2 config file not found N/A guess_grub2_default N/A N/A chroot N/A N/A N/A filename N/A /etc/default/grub /etc/sysconfig/grub N/A N/A N/A N/A N/A os path isfile N/A chroot filename N/A N/A filename N/A N/A N/A errors GrubUtilsError grub2 default config file not found N/A guess_grub2_mkconfig N/A N/A chroot N/A N/A N/A grub_mkconfig N/A /sbin/grub-mkconfig /sbin/grub2-mkconfig /usr/sbin/grub-mkconfig /usr/sbin/grub2-mkconfig N/A N/A N/A N/A N/A os path isfile N/A chroot grub_mkconfig N/A N/A grub_mkconfig N/A N/A N/A errors GrubUtilsError grub2 mkconfig binary not found N/A guess_grub_version N/A N/A chroot N/A N/A N/A grub_install N/A guess_grub_install chroot chroot N/A N/A N/A LOG debug N/A Trying to run %s --version grub_install N/A cmd N/A grub_install --version N/A chroot N/A N/A N/A cmd N/A 0 N/A chroot chroot N/A result N/A N/A utils execute cmd N/A version N/A N/A N/A N/A N/A result N/A 0 find 0.97 0 1 2 N/A N/A N/A LOG debug N/A Looks like grub version is %s version N/A version N/A guess_grub N/A N/A chroot N/A N/A N/A grub N/A /sbin/grub /usr/sbin/grub N/A N/A N/A N/A LOG debug N/A Looking for grub: trying %s grub N/A N/A N/A N/A os path isfile N/A chroot grub N/A N/A N/A N/A LOG debug N/A grub found: %s grub N/A grub N/A N/A N/A errors GrubUtilsError grub not found N/A guess_grub_install N/A N/A chroot N/A N/A N/A grub_install N/A /sbin/grub-install /sbin/grub2-install /usr/sbin/grub-install /usr/sbin/grub2-install N/A N/A N/A N/A LOG debug N/A Looking for grub-install: trying %s grub_install N/A N/A N/A N/A os path isfile N/A chroot grub_install N/A N/A N/A N/A LOG debug N/A grub-install found: %s grub_install N/A grub_install N/A N/A N/A errors GrubUtilsError grub-install not found in tenant image N/A guess_grub1_datadir N/A N/A chroot arch N/A x86_64 N/A N/A N/A N/A LOG debug Looking for grub data directory N/A d N/A N/A os listdir N/A chroot /usr/share/grub N/A N/A N/A arch d N/A N/A N/A N/A LOG debug N/A Looks like grub data directory is /usr/share/grub/%s d N/A N/A /usr/share/grub/ d N/A N/A N/A errors GrubUtilsError N/A grub data directory not found for arch %s arch N/A guess_kernel N/A N/A chroot regexp N/A None N/A N/A Tries to guess kernel by regexp

    :param chroot: Path to chroot
    :param regexp: (String) Regular expression (must have python syntax).
    Default is r'^vmlinuz.*'
     N/A kernel N/A N/A utils guess_filename path N/A N/A N/A os path join chroot boot regexp N/A regexp ^vmlinuz.* N/A kernel N/A N/A kernel N/A N/A N/A errors GrubUtilsError N/A Error while trying to find kernel: regexp=%s regexp N/A guess_initrd N/A N/A chroot regexp N/A None N/A N/A Tries to guess initrd by regexp

    :param chroot: Path to chroot
    :param regexp: (String) Regular expression (must have python syntax).
    Default is r'^(initrd|initramfs).*'
     N/A initrd N/A N/A utils guess_filename path N/A N/A N/A os path join chroot boot regexp N/A regexp ^(initrd|initramfs).* N/A initrd N/A N/A initrd N/A N/A N/A errors GrubUtilsError N/A Error while trying to find initrd: regexp=%s regexp N/A grub1_install N/A N/A install_devices boot_device chroot N/A N/A N/A match N/A N/A re search (.+?)(p?)(\d*)$ boot_device N/A N/A N/A N/A match group 3 N/A N/A N/A N/A errors GrubUtilsError Error while installing legacy grub: boot device must be a partition N/A boot_disk N/A N/A match group 1 N/A boot_part N/A str N/A N/A int N/A N/A match group 3 1 N/A N/A grub1_stage1 chroot chroot N/A install_device install_devices N/A N/A N/A grub1_mbr install_device boot_disk boot_part chroot chroot N/A grub1_mbr N/A N/A install_device boot_disk boot_part chroot N/A N/A N/A batch N/A N/A device (hd0) {0}
 format install_device N/A batch geometry (hd0) 130 255 63
 N/A N/A boot_disk install_device N/A N/A batch N/A N/A device (hd1) {0}
 format boot_disk N/A batch geometry (hd1) 130 255 63
 N/A batch N/A N/A root (hd1,{0})
 format boot_part N/A N/A batch N/A N/A root (hd0,{0})
 format boot_part N/A batch setup (hd0)
 N/A batch quit
 N/A N/A open N/A chroot /tmp/grub.batch wt encoding utf-8 f N/A N/A N/A N/A LOG debug N/A Grub batch content: 
%s batch N/A N/A N/A f write N/A N/A six text_type batch N/A script N/A N/A cat /tmp/grub.batch | {0} --no-floppy --batch format N/A guess_grub chroot chroot N/A N/A open N/A chroot /tmp/grub.sh wt encoding utf-8 f N/A N/A N/A N/A LOG debug N/A Grub script content: 
%s script N/A N/A N/A f write N/A N/A six text_type script N/A N/A N/A os chmod N/A chroot /tmp/grub.sh 493 N/A cmd N/A /tmp/grub.sh N/A chroot N/A N/A N/A cmd N/A 0 N/A chroot chroot N/A N/A stdout stderr N/A N/A utils execute run_as_root True check_exit_code N/A 0 cmd N/A N/A N/A LOG debug N/A Grub script stdout: 
%s stdout N/A N/A N/A LOG debug N/A Grub script stderr: 
%s stderr N/A grub1_stage1 N/A N/A chroot N/A N/A N/A N/A N/A LOG debug Installing grub stage1 files N/A f N/A N/A os listdir N/A chroot /boot/grub N/A N/A N/A N/A f N/A stage1 stage2 N/A stage1_5 f N/A N/A N/A N/A LOG debug N/A N/A Removing: %s chroot N/A N/A N/A os path join /boot/grub f N/A N/A N/A os remove N/A chroot N/A N/A N/A os path join /boot/grub f N/A grub1_datadir N/A guess_grub1_datadir chroot chroot N/A f N/A N/A os listdir N/A chroot grub1_datadir N/A N/A N/A N/A f N/A stage1 stage2 N/A stage1_5 f N/A N/A N/A N/A LOG debug N/A Copying %s from %s to /boot/grub N/A f grub1_datadir N/A N/A N/A shutil copy N/A chroot N/A N/A N/A os path join grub1_datadir f N/A chroot N/A N/A N/A os path join /boot/grub f N/A grub1_cfg N/A N/A kernel initrd kernel_params chroot grub_timeout N/A None None 5 N/A N/A N/A kernel N/A N/A kernel N/A guess_kernel chroot chroot N/A N/A initrd N/A N/A initrd N/A guess_initrd chroot chroot N/A config N/A N/A 
default=0
timeout={grub_timeout}
title Default ({kernel})
    kernel /{kernel} {kernel_params}
    initrd /{initrd}
     format kernel kernel initrd initrd kernel_params kernel_params grub_timeout grub_timeout N/A N/A open N/A chroot /boot/grub/grub.conf wt encoding utf-8 f N/A N/A N/A N/A f write N/A N/A six text_type config N/A grub2_install N/A N/A install_devices chroot boot_root lvm_boot N/A False N/A N/A grub_install N/A guess_grub_install chroot chroot N/A install_device install_devices N/A N/A cmd N/A grub_install install_device N/A lvm_boot N/A N/A N/A N/A cmd append --modules="lvm" N/A boot_root N/A N/A N/A N/A cmd append N/A N/A --boot-directory={}/boot format boot_root N/A N/A chroot N/A N/A N/A cmd N/A 0 N/A chroot chroot N/A N/A N/A utils execute run_as_root True check_exit_code N/A 0 cmd N/A grub2_cfg N/A N/A kernel_params chroot grub_timeout lvm_boot N/A 5 False N/A N/A N/A grub2_prepare kernel_params chroot grub_timeout lvm_boot N/A N/A cmd N/A N/A guess_grub2_mkconfig chroot -o N/A guess_grub2_conf chroot N/A chroot N/A N/A N/A cmd N/A 0 N/A chroot chroot N/A N/A N/A utils execute run_as_root True cmd N/A grub2_cfg_bundled N/A N/A kernel_params chroot grub_timeout lvm_boot N/A 5 False N/A N/A N/A N/A os symlink chroot /tmp/rootfs N/A N/A grub2_prepare kernel_params chroot grub_timeout lvm_boot N/A N/A N/A N/A os remove /etc/grub.d/10_linux N/A cmd N/A N/A guess_grub2_mkconfig -o N/A chroot /boot/grub2/grub.cfg N/A N/A N/A utils execute run_as_root True cwd /tmp/ cmd N/A N/A N/A os remove /tmp/rootfs N/A grub2_prepare N/A N/A kernel_params chroot grub_timeout lvm_boot N/A 5 False N/A N/A old_env N/A N/A N/A os environ copy N/A N/A N/A os environ N/A GRUB_DISABLE_SUBMENU y N/A N/A N/A os environ N/A GRUB_CMDLINE_LINUX_DEFAULT kernel_params N/A N/A N/A os environ N/A GRUB_CMDLINE_LINUX kernel_params N/A N/A N/A os environ N/A GRUB_HIDDEN_TIMEOUT N/A str grub_timeout N/A N/A N/A os environ N/A GRUB_RECORDFAIL_TIMEOUT N/A str grub_timeout N/A N/A N/A os environ N/A GRUB_DISABLE_OS_PROBER true N/A N/A N/A os environ N/A GRUB_DISABLE_LINUX_UUID true N/A N/A N/A os environ N/A GRUB_DISABLE_RECOVERY true N/A lvm_boot N/A N/A N/A N/A os environ N/A GRUB_PRELOAD_MODULES lvm N/A N/A N/A N/A os path isfile N/A N/A N/A os path join chroot boot/grub/grub.conf N/A N/A N/A N/A os remove N/A N/A N/A os path join chroot boot/grub/grub.conf N/A N/A N/A N/A os environ old_env N/A contextmanager guess_grub_cfg N/A N/A chroot N/A N/A N/A grub_cfg N/A grub/grub.cfg grub2/grub.cfg N/A N/A N/A N/A N/A os path isfile N/A N/A N/A os path join chroot grub_cfg N/A N/A grub_cfg N/A N/A N/A errors GrubUtilsError grub2 mkconfig binary not found N/A