31 |
CURRENTLINE=0 |
CURRENTLINE=0 |
32 |
#TOTALLINES=11072 # -> now in images.conf |
#TOTALLINES=11072 # -> now in images.conf |
33 |
|
|
34 |
# standart kernel opts |
# standard kernel opts |
35 |
KERNELOPTS="quiet" |
KERNELOPTS="quiet video=1024x768" |
36 |
|
|
37 |
# default specialdevices |
# default specialdevices |
38 |
SPECIALDEVICE="" |
SPECIALDEVICE="" |
540 |
# needed by grub-mkconfig on the first run |
# needed by grub-mkconfig on the first run |
541 |
if [[ ! -f ${INSTALLPATH}/boot/grub/video.lst ]] |
if [[ ! -f ${INSTALLPATH}/boot/grub/video.lst ]] |
542 |
then |
then |
543 |
install -m0644 ${INSTALLPATH}/lib/grub/*/video.lst /boot/grub/video.lst |
install -m0644 ${INSTALLPATH}/lib/grub/*/video.lst /boot/grub/video.lst || die |
544 |
fi |
fi |
545 |
echo 'grub-mkdevicemap' > ${INSTALLPATH}/root/.bashrc |
|
546 |
echo "LC_ALL=C grub-mkconfig -o ${grub2conf}" >> ${INSTALLPATH}/root/.bashrc |
# set kernelopts |
547 |
echo "grub-install --no-floppy ${HDD}" >> ${INSTALLPATH}/root/.bashrc |
if [[ -f ${INSTALLPATH}/etc/conf.d/grub ]] |
548 |
|
then |
549 |
|
sed -i "s:^\(export GRUB_CMDLINE_LINUX_DEFAULT\)=.*:\1\"${KERNELOPTS}\":" ${INSTALLPATH}/etc/conf.d/grub || die |
550 |
|
else |
551 |
|
echo "export GRUB_CMDLINE_LINUX_DEFAULT=\"${KERNELOPTS}\"" > ${INSTALLPATH}/etc/conf.d/grub || die |
552 |
|
fi |
553 |
|
echo 'grub-mkdevicemap' > ${INSTALLPATH}/root/.bashrc || die |
554 |
|
echo "LC_ALL=C grub-mkconfig -o ${grub2conf}" >> ${INSTALLPATH}/root/.bashrc || die |
555 |
|
echo "grub-install --no-floppy ${HDD}" >> ${INSTALLPATH}/root/.bashrc || die |
556 |
|
|
557 |
# grub-legacy |
# grub-legacy |
558 |
else |
else |