Example #1
0
    def finalize_chroot(self):
        pisi.db.invalidate_caches()

        # stop dbus
        shell_tools.chroot_run(self.path, "/bin/service dbus stop")

        # kill comar in chroot if any exists
        shell_tools.chroot_run(self.path, "/bin/killall comar")

        # unmount sys dirs
        temp = SYS_DIRS
        temp.reverse()
        for _dir in temp:
            tgt = os.path.join(self.path, _dir)
            shell_tools.umount(tgt)

        # swap off if it is opened
        shell_tools.run_quiet("swapoff -a")
Example #2
0
    def finalize_chroot(self):
        pisi.db.invalidate_caches()

        # stop dbus
        shell_tools.chroot_run(self.path, "/bin/service dbus stop")

        # kill comar in chroot if any exists
        shell_tools.chroot_run(self.path, "/bin/killall comar")

        # unmount sys dirs
        temp = SYS_DIRS
        temp.reverse()
        for _dir in temp:
            tgt = os.path.join(self.path, _dir)
            shell_tools.umount(tgt)

        # swap off if it is opened
        shell_tools.run_quiet("swapoff -a")
def install_windows_bootloader(windows):
    """This module for rescue Windows bootloaders"""
    run_quiet("install-mbr  -i n -p D -t  %d %s" % (windows[1], windows[0]))
Example #4
0
def install_windows_bootloader(windows):
    """This module for rescue Windows bootloaders"""
    run_quiet("install-mbr  -i n -p D -t  %d %s" % (windows[1], windows[0]))
Example #5
0
def umount(target):
    run_quiet("umount %s" % (target))
Example #6
0
def mount(source, target, file_system):
    run_quiet("mount -t %s %s %s" % (file_system, source, target))
Example #7
0
def umount(target):
    run_quiet("umount %s" % (target))
Example #8
0
def mount(source, target, file_system):
    run_quiet("mount -t %s %s %s" % (file_system, source, target))