7
def create_directory_structure():
8
VMBuilder.workdir = create_workdir()
9
add_clean_cmd('rm', '-rf', workdir)
11
logging.debug('Temporary directory: %s', workdir)
13
# rootmnt is where the disk images will be mounted
14
rootmnt = '%s/target' % workdir
15
logging.debug('Creating the root mount directory: %s', rootmnt)
18
# tmproot it where we build up the guest filesystem
19
tmproot = '%s/root' % workdir
20
logging.debug('Creating temporary root: %s', tmproot)
23
logging.debug('Creating destination directory: %s', options.destdir)
24
os.mkdir(options.destdir)
25
util.give_to_caller(options.destdir)
30
if options.tmp is not None:
31
workdir = tempfile.mkdtemp('', 'vmbuilder', options.tmp)
33
workdir = tempfile.mkdtemp('', 'vmbuilder')