Esempio n. 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')
Esempio n. 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')
Esempio n. 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)
Esempio n. 4
0
 def mount_tmp(self):
     mount_tmpfs(target='/tmp')
Esempio n. 5
0
 def mount_dev(self):
     mount_tmpfs(target='/dev')
Esempio n. 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)
Esempio n. 7
0
 def mount_tmp(self):
     mount_tmpfs(target='/tmp')
Esempio n. 8
0
 def mount_dev(self):
     mount_tmpfs(target='/dev')