testing scripts
This commit is contained in:
parent
a60d4780ba
commit
a9180c8212
13
aifclient.py
13
aifclient.py
@ -325,10 +325,15 @@ class aif(object):
|
|||||||
for x in xmlobj.find('bootloader').attrib:
|
for x in xmlobj.find('bootloader').attrib:
|
||||||
aifdict['system']['bootloader'][x] = xmlobj.find('bootloader').attrib[x]
|
aifdict['system']['bootloader'][x] = xmlobj.find('bootloader').attrib[x]
|
||||||
# The script setup...
|
# The script setup...
|
||||||
for x in xmlobj.find('scripts'):
|
# We do this later on.
|
||||||
scripttype =
|
# for x in xmlobj.find('scripts'):
|
||||||
if not aifdict['scripts'][scripttype]:
|
# if x.attrib['bootstrap'].lower() in ('true', '1'):
|
||||||
aifdict['scripts'][scripttype] = {}
|
# scripttype = 'pre'
|
||||||
|
# else:
|
||||||
|
# scripttype = 'post'
|
||||||
|
# if not aifdict['scripts'][scripttype]:
|
||||||
|
# aifdict['scripts'][scripttype] = {}
|
||||||
|
# aifdict['scripts'][scripttype][int(x.attrib['order'])] = {}
|
||||||
return(aifdict)
|
return(aifdict)
|
||||||
|
|
||||||
class archInstall(object):
|
class archInstall(object):
|
||||||
|
3
script-samples/post.sh
Normal file
3
script-samples/post.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo 'This is another sample script. It would run after the install has completed.'
|
3
script-samples/pre.sh
Normal file
3
script-samples/pre.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo 'This is an example script. It currently does nothing. You can run anything here. It would run before disk partitioning.'
|
Loading…
Reference in New Issue
Block a user