tmptree = tempfile.mkdtemp('', 'auto-install.', '/tmp')
cdtree = os.path.join(tmptree, 'cdrom')
shutil.copytree(os.path.join(basetree, 'cdrom'), cdtree, symlinks=True)
new_preseed = file(os.path.join(cdtree, 'preseed.cfg'), 'w')
tmptree = tempfile.mkdtemp('', 'auto-install.', '/tmp')
cdtree = os.path.join(tmptree, 'cdrom')
shutil.copytree(os.path.join(basetree, 'cdrom'), cdtree, symlinks=True)
new_preseed = file(os.path.join(cdtree, 'preseed.cfg'), 'w')