Magellan Linux

Diff of /smage/branches/alx-0_6_0/core/grub/grub-1.99-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2540 by niro, Fri Jul 1 22:29:16 2011 UTC revision 2541 by niro, Fri Jul 1 23:01:53 2011 UTC
# Line 21  sminclude mtools Line 21  sminclude mtools
21  SRC_URI=(  SRC_URI=(
22   gnu://${PNAME}/${SRCFILE}   gnu://${PNAME}/${SRCFILE}
23   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
24     mirror://${PNAME}/${PNAME}-${PVER}-confd.patch
25   mirror://${PNAME}/${PNAME}-${PVER}-alx.patch   mirror://${PNAME}/${PNAME}-${PVER}-alx.patch
26  )  )
27    
# Line 36  src_prepare() Line 37  src_prepare()
37   munpack ${SRCFILE} || die   munpack ${SRCFILE} || die
38   cd ${SRCDIR}   cd ${SRCDIR}
39    
40     # use /etc/conf.d/grub instead of /etc/default/grub
41     mpatch ${PNAME}-${PVER}-confd.patch || die
42    
43   # fixes some issues with busybox   # fixes some issues with busybox
44   mpatch ${PNAME}-${PVER}-alx.patch || die   mpatch ${PNAME}-${PVER}-alx.patch || die
45  }  }
# Line 52  src_compile() Line 56  src_compile()
56   --disable-werror \   --disable-werror \
57   --disable-nls \   --disable-nls \
58   || die   || die
59    
60   mmake || die   mmake || die
61  }  }
62    
# Line 64  src_install() Line 69  src_install()
69   # fix a missing symlink   # fix a missing symlink
70   mlink /bin/grub-mkimage /sbin || die   mlink /bin/grub-mkimage /sbin || die
71    
72     # setup a proper grub default conf
73     minstalldir /etc/conf.d || die
74     cat > ${BINDIR}/etc/conf.d/grub << EOF
75    GRUB_DEFAULT=0
76    GRUB_TIMEOUT=5
77    GRUB_DISTRIBUTOR="ALX Thinclient"
78    GRUB_CMDLINE_LINUX_DEFAULT="quiet"
79    GRUB_CMDLINE_LINUX=""
80    GRUB_TERMINAL_INPUT=console
81    GRUB_GFXMODE=auto
82    GRUB_GFXPAYLOAD_LINUX=keep
83    GRUB_DISABLE_RECOVERY=true
84    GRUB_COLOR_NORMAL="light-blue/black"
85    GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
86    #GRUB_BACKGROUND="/path/to/wallpaper"
87    #GRUB_THEME="/path/to/gfxtheme"
88    EOF
89    
90   minstalldir /boot/grub || die   minstalldir /boot/grub || die
91   cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF"   cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF"
92  default 0  default 0
93  timeout 30  timeout 30
94    
95  title Magellan-Linux  title ALX Thinclient
96  linux (hd0,0)/boot/vmlinuz root=/dev/hda3  linux (hd0,0)/boot/vmlinuz root=/dev/hda3
97  initrd (hd0,0)/boot/initrd  initrd (hd0,0)/boot/initrd
98  EOF  EOF
# Line 85  preinstall() Line 108  preinstall()
108    
109  postinstall()  postinstall()
110  {  {
   
111   [ ! -d ${MROOT}/boot/grub ] && install -d ${MROOT}/boot/grub   [ ! -d ${MROOT}/boot/grub ] && install -d ${MROOT}/boot/grub
112    
113   # creates some essential links   # creates some essential links

Legend:
Removed from v.2540  
changed lines
  Added in v.2541