util-iso: set the grub theme by $iso_name

This commit is contained in:
udeved 2017-03-31 17:45:16 +02:00
parent 25ddeb1593
commit a1492e8d1e

View file

@ -388,6 +388,10 @@ configure_grub(){
-i $1
}
configure_grub_theme(){
sed -e "s|@ISO_NAME@|${iso_name}|" -i "$1"
}
make_grub(){
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
msg "Prepare [/iso/boot/grub]"
@ -397,6 +401,7 @@ make_grub(){
prepare_grub "${path}" "${iso_root}"
configure_grub "${iso_root}/boot/grub/kernels.cfg"
configure_grub_theme "${iso_root}/boot/grub/variable.cfg"
: > ${work_dir}/build.${FUNCNAME}
msg "Done [/iso/boot/grub]"