diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-04-21 21:27:36 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-04-21 21:27:36 +0000 |
commit | c8c53b8689ea0e8d848dc3428e99a3116b55f5c5 (patch) | |
tree | 5c96409a3f013738c278194d3dae5dc4b503c18c /install | |
parent | 7105baa2f95ad33e4d541ad6b115431c7f04e221 (diff) | |
download | live-c8c53b8689ea0e8d848dc3428e99a3116b55f5c5.tar.gz |
quick and dirty network configurtation
Diffstat (limited to 'install')
-rwxr-xr-x | install | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -24,6 +24,7 @@ import os import re import sys import math +import shutil # Snack screen screen = None @@ -822,8 +823,16 @@ def configure_bootenv(): write_vfstab() mount_in_bootenv() in_bootenv(['/usr/sbin/devfsadm']) + open(rootdir + '/reconfigure', 'w').close() configure_packages() configure_nodename() + + # quick and dirty: if network is configured on livecd, copy config into boot env + try: + shutil.copy2('/etc/ipadm/ipadm.conf', + rootdir+'/etc/ipadm/ipadm.conf') + except: + pass set_root_password() create_bootarchive() |