Ejemplo n.º 1
0
function afi_part_get_installdisks_space()
{
    $host_conf = afi_get_host_config(afi_get_const_array_key('AFI_INI_SETTINGS', 'afi_conf_dir'), afi_get_client_profile_name());
    return implode(" ", $host_conf['install_disks']);
}
Ejemplo n.º 2
0
<?php

require_once './inc/conf.php';
#specific require_once's
require_once './lib/libks.php';
require_once './lib/libpart.php';
$host_conf = afi_get_host_config(afi_get_const_array_key('AFI_INI_SETTINGS', 'afi_conf_dir'), afi_get_client_profile_name());
$afi_pre_dir = "/tmp/afi_pre";
$afi_post_dir = "/tmp/afi_post";
print "# Partitioning Information and bootloader\n";
afi_part_bootloader();
print "\n";
afi_part_main();
print "\n";
?>

# Perform kickstart installation in text mode
text
install
skipx

# Agree to EULA
#eula --agreed

# enable debug logging
logging --level=debug

# reboot after installation
reboot

<?php 
Ejemplo n.º 3
0
<?php

#### require_once libraries ####
require_once './lib/libdebug.php';
require_once './lib/libconf.php';
#### process ini file ####
$afi_ini = parse_ini_file("./afi.ini");
afi_set_const_array("AFI_INI_SETTINGS", parse_ini_file("./afi.ini"));
#### host config ####
#create host config
afi_set_const_array('AFI_CLIENT_CONF', afi_get_host_config(afi_get_const_array_key('AFI_INI_SETTINGS', 'afi_conf_dir'), afi_get_client_profile_name()));
# check if host config worked
if (!afi_get_const_array_key('AFI_CLIENT_CONF', 'environment') || afi_get_const_array_key('AFI_CLIENT_CONF', 'environment') == "") {
    print "error loading host_conf\n";
    exit(1);
}