function afi_part_post_nochroot() { $partition_class = afi_part_get_partitionclass(); afi_require_file_and_override("part/{$partition_class}.post_nochroot", false); if (function_exists('afi_partition_post_nochroot')) { afi_partition_post_nochroot(afi_part_get_installdisks()); } }
exit 0 EOF # End creating firstreboot script # End firstreboot <?php print "# Trying to load post - chroot partition class \n"; afi_part_post(); print "# End post - chroot partition class \n"; print "\n"; print "# Trying to load postclasses - chroot\n"; if (is_array($host_conf['post_classes'])) { foreach ($host_conf['post_classes'] as $postclassvalue) { print "# Trying to load " . $postclassvalue . ".chroot\n"; afi_require_file_and_override("post/{$postclassvalue}.chroot"); print "# End " . $postclassvalue . ".chroot \n"; print "\n"; } } print "# End postclasses - chroot\n"; print "\n"; if (afi_get_const_array_key('AFI_CLIENT_CONF', 'dist') == "oracle") { print "# hacky workaround to remove grub entry for kernel (we only want kernel-uek on oracle linux)\n"; print "for KERNEL in /boot/vmlinuz-2.6.32*; do /sbin/grubby --remove-kernel=\"\$KERNEL\";done\n"; print "\n"; } if (afi_get_const_array_key('AFI_CLIENT_CONF', 'unset_install_when_successfully_installed') === "1") { print "echo \"#unsetting host install to prevent install loop\"\n"; print afi_get_unset_url_command() . "\n"; }