LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File isopatch.sh.in of Package kiwi-config-openSUSE (Project openSUSE:Factory:Live)

#! /bin/sh

set -ex

sed -i -e "s,label Hard-Disk,label harddisk," boot/*/loader/isolinux.cfg
# remove splash for mediacheck
sed -i -e 's,mediacheck=1 splash=silent quiet,mediacheck=1,' boot/*/loader/isolinux.cfg
sed -i -e 's,key.F4=$,key.F4=kernelopts,' boot/*/loader/gfxboot.cfg

bootd=$(ls -1d boot/*/loader)
cp boot/*/loader/isolinux.cfg syslinux.cfg
sed -i -e "s,kernel linux,kernel $bootd/linux," syslinux.cfg
sed -i -e "s,initrd=initrd,initrd=$bootd/initrd," syslinux.cfg
sed -i -e "s,timeout *200,timeout 5," syslinux.cfg
# copyright matz
sed -i -ne ':ss;/^label media/{:s;n;/^ /b s;b ss};p' syslinux.cfg