--- smage/branches/alx-0_6_0/core/grub/grub-1.99-r1.smage2 2011/07/01 22:29:16 2540 +++ smage/branches/alx-0_6_0/core/grub/grub-1.99-r1.smage2 2011/07/01 23:01:53 2541 @@ -21,6 +21,7 @@ SRC_URI=( gnu://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} + mirror://${PNAME}/${PNAME}-${PVER}-confd.patch mirror://${PNAME}/${PNAME}-${PVER}-alx.patch ) @@ -36,6 +37,9 @@ munpack ${SRCFILE} || die cd ${SRCDIR} + # use /etc/conf.d/grub instead of /etc/default/grub + mpatch ${PNAME}-${PVER}-confd.patch || die + # fixes some issues with busybox mpatch ${PNAME}-${PVER}-alx.patch || die } @@ -52,6 +56,7 @@ --disable-werror \ --disable-nls \ || die + mmake || die } @@ -64,12 +69,30 @@ # fix a missing symlink mlink /bin/grub-mkimage /sbin || die + # setup a proper grub default conf + minstalldir /etc/conf.d || die + cat > ${BINDIR}/etc/conf.d/grub << EOF +GRUB_DEFAULT=0 +GRUB_TIMEOUT=5 +GRUB_DISTRIBUTOR="ALX Thinclient" +GRUB_CMDLINE_LINUX_DEFAULT="quiet" +GRUB_CMDLINE_LINUX="" +GRUB_TERMINAL_INPUT=console +GRUB_GFXMODE=auto +GRUB_GFXPAYLOAD_LINUX=keep +GRUB_DISABLE_RECOVERY=true +GRUB_COLOR_NORMAL="light-blue/black" +GRUB_COLOR_HIGHLIGHT="light-cyan/blue" +#GRUB_BACKGROUND="/path/to/wallpaper" +#GRUB_THEME="/path/to/gfxtheme" +EOF + minstalldir /boot/grub || die cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF" default 0 timeout 30 -title Magellan-Linux +title ALX Thinclient linux (hd0,0)/boot/vmlinuz root=/dev/hda3 initrd (hd0,0)/boot/initrd EOF @@ -85,7 +108,6 @@ postinstall() { - [ ! -d ${MROOT}/boot/grub ] && install -d ${MROOT}/boot/grub # creates some essential links