def applydevfs(self): if not self.devfs: return if not self.running: print self.name+' is not running' Devfs.loadrules() if self.devfs_rules: Devfs.loadrules(self.devfs_rules) Devfs.fromStore(self.devfs).apply(self.rootdir+'/dev')
def _mount(self): if self.devfs: Devfs.loadrules() if self.devfs_rules: Devfs.loadrules(self.devfs_rules) Devfs.mount(self.rootdir+'/dev', self.devfs) if self.procfs: mount('proc', self.rootdir+'/proc', 'procfs') if self.ports: mount('/usr/ports', self.rootdir+'/usr/ports', 'nullfs') mount('/usr/ports/distfiles', self.rootdir+'/usr/ports/distfiles', 'nullfs') if self.mount: # check if exists call(['/sbin/mount','-a','-F',self.mount])