return None
def __do_chroot(self):
- self.config.cache_it()
os.chroot(self.dir)
os.chdir("/")
os.unlink(f)
# set the initial runlevel
- f = open(RUNDIR + "/utmp", "w")
- vserverimpl.setrunlevel(f, runlevel)
- f.close()
+ vserverimpl.setrunlevel(RUNDIR + "/utmp", runlevel)
# mount /proc and /dev/pts
self.__do_mount("none", self.dir, "/proc", "proc")
raise ex
def enter(self):
+ self.config.cache_it()
self.__do_chroot()
self.__do_chcontext(None)
if fd != 0:
os.dup2(fd, 0)
os.close(fd)
+ self.config.cache_it()
self.__do_chroot()
log = open("/var/log/boot.log", "w", 0)
if log.fileno() != 1: