From dec135a98e3451573cbb410b7a792da6e9cdec97 Mon Sep 17 00:00:00 2001 From: udeved Date: Wed, 4 Mar 2015 21:10:34 +0100 Subject: [PATCH] [util-iso-boot] add isolinux.msg writer and updater --- lib/util-iso-boot.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lib/util-iso-boot.sh b/lib/util-iso-boot.sh index 4231515..fcdc6b0 100644 --- a/lib/util-iso-boot.sh +++ b/lib/util-iso-boot.sh @@ -186,6 +186,23 @@ write_isolinux_cfg(){ echo " kernel memtest" >> ${conf} } +write_isolinux_msg(){ + local fn=isolinux.msg + local conf=$1/${fn} + msg2 "writing ${fn} ..." + echo "Welcome to ${img_name} Linux!" > ${conf} + echo '' >> ${conf} + echo "Start the system oress enter 'press '" >> ${conf} + echo '' >> ${conf} + echo '' >> ${conf} + echo "Available boot options:" >> ${conf} + echo "start - Start ${img_name} Live System" >> ${conf} + echo "nonfree - Start proprearity drivers" >> ${conf} + echo "harddisk - Boot from local hard disk" >> ${conf} + echo "hdt - Run Hardware Detection Tool" >> ${conf} + echo "memtest - Run Memory Test" >> ${conf} +} + update_isolinux_cfg(){ local fn=isolinux.cfg msg2 "updating ${fn} ..." @@ -196,6 +213,12 @@ update_isolinux_cfg(){ s|%ARCH%|${arch}|g" $1/${fn} } +update_isolinux_msg(){ + local fn=isolinux.msg + msg2 "updating ${fn} ..." + sed -i "s|%IMG_NAME%|${img_name}|g" $1/${fn} +} + write_isomounts(){ echo '# syntax: ' > $1 echo '# Sample kernel argument in syslinux: overlay=extra,extra2' >> $1