# Start suse_early_default # This script is not run in the chroot /target by default #if $getVar('system_name','') != '' #set $what = "system" #else #set $what = "profile" #end if $SNIPPET('suse_pre_log') $SNIPPET('suse_pre_install_network') $SNIPPET('suse_pre_partition_disks') $SNIPPET('suse_pre_anamon') wget -O- http://$http_server/cblr/svc/op/ks/$what/$name | sed -e 's/&/\&/g' -e 's/&/\&/g' > /tmp/profile/modified.xml #raw # generic functions to be used to expand xml entity entity_expand() { sed -i "/&$1;/ { r /tmp/profile/$1.xml d }" $2 } #end raw entity_expand network /tmp/profile/modified.xml entity_expand partition /tmp/profile/modified.xml entity_expand bootloader /tmp/profile/modified.xml # End suse_early_default