示例#1
0
 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')
示例#2
0
 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')
示例#3
0
def setup_target(target='/tmp/target', device='/dev/ubda', fstype='ext2'):
    mount_tmpfs(target='/tmp')
    make_filesystem(device, fstype)
    mount_target(target, device)
示例#4
0
 def mount_tmp(self):
     mount_tmpfs(target='/tmp')
示例#5
0
 def mount_dev(self):
     mount_tmpfs(target='/dev')
示例#6
0
def setup_target(target='/tmp/target', device='/dev/ubda', fstype='ext2'):
    mount_tmpfs(target='/tmp')
    make_filesystem(device, fstype)
    mount_target(target, device)
示例#7
0
 def mount_tmp(self):
     mount_tmpfs(target='/tmp')
示例#8
0
 def mount_dev(self):
     mount_tmpfs(target='/dev')