Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 3
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]))
Ejemplo n.º 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]))
Ejemplo n.º 5
0
def umount(target):
    run_quiet("umount %s" % (target))
Ejemplo n.º 6
0
def mount(source, target, file_system):
    run_quiet("mount -t %s %s %s" % (file_system, source, target))
Ejemplo n.º 7
0
def umount(target):
    run_quiet("umount %s" % (target))
Ejemplo n.º 8
0
def mount(source, target, file_system):
    run_quiet("mount -t %s %s %s" % (file_system, source, target))