From 68353d621ed92f28c49312f938a2c2d7a051bbd5 Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Sun, 18 Dec 2016 13:51:00 +0000 Subject: commit before fixing the snmp_agent_uptime task git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@369 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/isc_dhcp_live_boot/task.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'kpov_judge/tasks/isc_dhcp_live_boot') 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 -- cgit v1.2.1