summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/isc_dhcp_live_boot
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/isc_dhcp_live_boot')
-rw-r--r--kpov_judge/tasks/isc_dhcp_live_boot/task.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/kpov_judge/tasks/isc_dhcp_live_boot/task.py b/kpov_judge/tasks/isc_dhcp_live_boot/task.py
index b7dfbee..15d150e 100644
--- a/kpov_judge/tasks/isc_dhcp_live_boot/task.py
+++ b/kpov_judge/tasks/isc_dhcp_live_boot/task.py
@@ -49,7 +49,7 @@ computers = {
{ 'name': 'student-DHCPServer',
},
{ 'name': 'bootable_usb',
- 'options':{'readonly': True},
+ 'options':{'readonly': False},
'parts': [ {'dev': 'sdb1', 'path':'/mnt'} ],
},
#{ 'name': 'CDROM',
@@ -214,16 +214,9 @@ def task_check(results, params):
def prepare_disks(templates, task_params, global_params):
# d = templates['simpleArbiterDhcp']
d = templates['student-DHCPServer']
- s = """# use this exact config for your booting clients.
-# search path for the c32 support libraries (libcom32, libutil etc.)
-path
-include menu.cfg
-default vesamenu.c32
-prompt 0
-timeout 0
-# {}""".format(task_params['TFTP_STRING'])
+ s = """# {}""".format(task_params['TFTP_STRING'])
d = templates['bootable_usb']
- d.write('/mnt/syslinux.cfg', s)
+ d.write_append('/mnt/syslinux.cfg', s)
d = templates['simpleArbiterGW']
s = """auto lo
iface lo inet loopback