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]))
def umount(target): run_quiet("umount %s" % (target))
def mount(source, target, file_system): run_quiet("mount -t %s %s %s" % (file_system, source, target))