def _init_uml_system(self): print 'initializing uml system' for target in ['/tmp', '/dev']: mount_tmpfs(target=target) # we need something better here os.system('mknod /dev/null c 1 3') os.system('mknod /dev/ubda b 98 0') os.system('mknod /dev/ubdb b 98 16')
def setup_target(target='/tmp/target', device='/dev/ubda', fstype='ext2'): mount_tmpfs(target='/tmp') make_filesystem(device, fstype) mount_target(target, device)
def mount_tmp(self): mount_tmpfs(target='/tmp')
def mount_dev(self): mount_tmpfs(target='/dev')