--- alx-src/trunk/alxinstall-ng/bin/alxinstall-ng.sh.in 2011/07/04 18:07:16 2555 +++ alx-src/trunk/alxinstall-ng/bin/alxinstall-ng.sh.in 2011/07/04 18:24:30 2557 @@ -32,7 +32,7 @@ #TOTALLINES=11072 # -> now in images.conf # standard kernel opts -KERNELOPTS="quiet splash=silent,theme=default" +KERNELOPTS="quiet video=1024x768" # default specialdevices SPECIALDEVICE="" @@ -540,11 +540,19 @@ # needed by grub-mkconfig on the first run if [[ ! -f ${INSTALLPATH}/boot/grub/video.lst ]] then - install -m0644 ${INSTALLPATH}/lib/grub/*/video.lst /boot/grub/video.lst + install -m0644 ${INSTALLPATH}/lib/grub/*/video.lst /boot/grub/video.lst || die fi - echo 'grub-mkdevicemap' > ${INSTALLPATH}/root/.bashrc - echo "LC_ALL=C grub-mkconfig -o ${grub2conf}" >> ${INSTALLPATH}/root/.bashrc - echo "grub-install --no-floppy ${HDD}" >> ${INSTALLPATH}/root/.bashrc + + # set kernelopts + if [[ -f ${INSTALLPATH}/etc/conf.d/grub ]] + then + sed -i "s:^\(export GRUB_CMDLINE_LINUX_DEFAULT\)=.*:\1\"${KERNELOPTS}\":" ${INSTALLPATH}/etc/conf.d/grub || die + else + echo "export GRUB_CMDLINE_LINUX_DEFAULT=\"${KERNELOPTS}\"" > ${INSTALLPATH}/etc/conf.d/grub || die + fi + echo 'grub-mkdevicemap' > ${INSTALLPATH}/root/.bashrc || die + echo "LC_ALL=C grub-mkconfig -o ${grub2conf}" >> ${INSTALLPATH}/root/.bashrc || die + echo "grub-install --no-floppy ${HDD}" >> ${INSTALLPATH}/root/.bashrc || die # grub-legacy else