~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-buildjail

  • Committer: William Grant
  • Date: 2009-12-14 03:45:02 UTC
  • Revision ID: me@williamgrant.id.au-20091214034502-o5ooeutzzk3zeq4c
When in devmode, copy hosts/hostname/resolv.conf into the jail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
        shutil.rmtree(jail_site_packages)
147
147
    shutil.copytree(ivle_site_packages, jail_site_packages)
148
148
 
 
149
    # And finally copy in /etc/hosts, /etc/resolv.conf and /etc/hostname,
 
150
    # so name resolution is less unlikely to work.
 
151
    shutil.copy(
 
152
        '/etc/resolv.conf', os.path.join(build_path, 'etc/resolv.conf'))
 
153
    shutil.copy('/etc/hosts', os.path.join(build_path, 'etc/hosts'))
 
154
    shutil.copy('/etc/hostname', os.path.join(build_path, 'etc/hostname'))
 
155
 
149
156
# Make /tmp and /var/lock un-world-writable. /tmp will be mounted over,
150
157
# and /var/{lock,tmp} should die.
151
158
for path in ('tmp', 'var/lock', 'var/tmp'):