summaryrefslogtreecommitdiff
path: root/grub
diff options
context:
space:
mode:
authorSimone Rota <sip@crux.nu>2006-12-04 14:47:36 +0000
committerSimone Rota <sip@crux.nu>2006-12-04 14:47:36 +0000
commit51c0e26280d9c07969c45cca734a54864665ee57 (patch)
tree8f75b6d43f726088f54e9b1fb1b4e6aaa1bc539d /grub
parent1562da7b94fa7efc6e74f4836e3066064a91e83b (diff)
downloadopt-51c0e26280d9c07969c45cca734a54864665ee57.tar.gz
opt-51c0e26280d9c07969c45cca734a54864665ee57.tar.xz
grub: imported into opt
Diffstat (limited to 'grub')
-rw-r--r--grub/.footprint37
-rw-r--r--grub/.md5sum5
-rw-r--r--grub/Pkgfile89
-rw-r--r--grub/README50
-rw-r--r--grub/grub.conf.sample64
5 files changed, 245 insertions, 0 deletions
diff --git a/grub/.footprint b/grub/.footprint
new file mode 100644
index 000000000..b6da1099c
--- /dev/null
+++ b/grub/.footprint
@@ -0,0 +1,37 @@
+drwxr-xr-x root/root boot/
+drwxr-xr-x root/root boot/grub/
+-rw-r--r-- root/root boot/grub/crux02.xpm.gz
+-rw-r--r-- root/root boot/grub/crux03.xpm.gz
+-rw-r--r-- root/root boot/grub/grub.conf.sample
+drwxr-xr-x root/root sbin/
+-rwxr-xr-x root/root sbin/grub
+-rwxr-xr-x root/root sbin/grub-install
+-rwxr-xr-x root/root sbin/grub-md5-crypt
+-rwxr-xr-x root/root sbin/grub-terminfo
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/mbchk
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/mbchk.1.gz
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/grub-install.8.gz
+-rw-r--r-- root/root usr/man/man8/grub-md5-crypt.8.gz
+-rw-r--r-- root/root usr/man/man8/grub-terminfo.8.gz
+-rw-r--r-- root/root usr/man/man8/grub.8.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/grub/
+drwxr-xr-x root/root usr/share/grub/i386-pc/
+-rw-r--r-- root/root usr/share/grub/i386-pc/e2fs_stage1_5
+-rw-r--r-- root/root usr/share/grub/i386-pc/fat_stage1_5
+-rw-r--r-- root/root usr/share/grub/i386-pc/ffs_stage1_5
+-rw-r--r-- root/root usr/share/grub/i386-pc/iso9660_stage1_5
+-rw-r--r-- root/root usr/share/grub/i386-pc/jfs_stage1_5
+-rw-r--r-- root/root usr/share/grub/i386-pc/minix_stage1_5
+-rw-r--r-- root/root usr/share/grub/i386-pc/reiserfs_stage1_5
+-rw-r--r-- root/root usr/share/grub/i386-pc/stage1
+-rw-r--r-- root/root usr/share/grub/i386-pc/stage2
+-rw-r--r-- root/root usr/share/grub/i386-pc/stage2_eltorito
+-rw-r--r-- root/root usr/share/grub/i386-pc/ufs2_stage1_5
+-rw-r--r-- root/root usr/share/grub/i386-pc/vstafs_stage1_5
+-rw-r--r-- root/root usr/share/grub/i386-pc/xfs_stage1_5
diff --git a/grub/.md5sum b/grub/.md5sum
new file mode 100644
index 000000000..2d994f613
--- /dev/null
+++ b/grub/.md5sum
@@ -0,0 +1,5 @@
+571ab75bb9f4c247853d93264eda1df4 crux02.xpm.gz
+55e343038043e16df5293d63782373d0 crux03.xpm.gz
+e0fce491c713805650df3d8962ead526 grub-0.97-patches.tar.gz
+cd3f3eb54446be6003156158d51f4884 grub-0.97.tar.gz
+1f2733522ab27183e3830d93733141ac grub.conf.sample
diff --git a/grub/Pkgfile b/grub/Pkgfile
new file mode 100644
index 000000000..a325e22eb
--- /dev/null
+++ b/grub/Pkgfile
@@ -0,0 +1,89 @@
+# Description: GNU GRUB (GRand Unified Bootloader)
+# URL: http://www.gnu.org/software/grub/
+# Packager: Daniel Müller, daniel at danm dot de
+# Maintainer: Matt Housh, jaeger at morpheus dot net
+# Depends on: ncurses, gettext
+
+name=grub
+version=0.97
+release=2
+source=(ftp://alpha.gnu.org/gnu/grub/$name-$version.tar.gz \
+ http://crux.nu/files/grub/$version/$name-$version-patches.tar.gz \
+ http://crux.nu/files/grub/common/crux02.xpm.gz \
+ http://crux.nu/files/grub/common/crux03.xpm.gz \
+ grub.conf.sample)
+
+build () {
+ cd $name-$version
+
+ # automake 1.10 fix
+ sed -i '19i\AM_PROG_AS' configure.ac
+
+ # Apply Fedora Core patches
+ PATCH_LIST=(
+ 0.93-configfile
+ 0.90-symlinkmenulst
+ 0.97-install.in
+ 0.94-installcopyonly
+ 0.94-addsyncs
+ 0.95-staticcurses
+ 0.93-endedit
+ 0.90-append
+ 0.97-once
+ 0.95-graphics
+ 0.91-splashimagehelp
+ 0.93-graphics-bootterm
+ 0.95-hiddenmenu-tweak
+ 0.93-special-device-names
+ 0.94-i2o
+ 0.95-moreraid
+ 0.94-initrdmax
+ 0.95-odirect
+ 0.95-geometry-26kernel
+ 0.95-md
+ 0.95-md-rework
+ 0.95-xpmjunk
+ 0.95-splash-error-term
+ 0.97-nxstack
+ 0.97-nx-multiinstall
+ 0.97-mdadm-path
+ 0.95-md-mbr
+ 0.97-gcc4
+ 0.95-nonmbr
+ 0.95-recheck-bad
+ 0.97-prototypes
+ 0.97-datadir
+ 0.97-dmraid
+ 0.97-dmraid-recheck-bad
+ 0.97-dmraid-partition-names
+ 0.97-mactel-kbd
+ 0.97-stderr
+ 0.97-mpath
+ )
+
+ for PATCH in ${PATCH_LIST[@]}
+ do
+ patch -p1 -i $SRC/$name-patches/$name-$PATCH.patch
+ done
+
+ # http://lists.gnu.org/archive/html/bug-grub/2005-04/msg00031.html
+ patch -p0 -i $SRC/$name-patches/$name-0.95-xfs-writable-strings.patch
+
+ unset CXXFLAGS
+ export CFLAGS="-Os"
+
+ autoreconf --install --force
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/man \
+ --sbindir=/sbin \
+ --disable-nls \
+ --disable-auto-linux-mem-opt
+
+ make
+ make DESTDIR=$PKG install
+ rm -rf $PKG/usr/share/info
+
+ mkdir -p $PKG/boot/grub
+ install -m 644 $SRC/{crux*,grub.conf.sample} $PKG/boot/grub/
+}
diff --git a/grub/README b/grub/README
new file mode 100644
index 000000000..411bd6102
--- /dev/null
+++ b/grub/README
@@ -0,0 +1,50 @@
+
+REQUIREMENTS
+
+PRE-INSTALL
+
+POST-INSTALL
+
+ After installation you need to copy the stage files to
+ /boot/grub/:
+
+ # cp /usr/share/grub/i386-pc/* /boot/grub/
+
+ (Of course, you can choose another location as described above but
+ this guide assumes that you use /boot/grub. Normally you need only
+ the files stage1 and stage2 - please read the grub documentation if
+ you don't know why. http://www.uruk.org/orig-grub/ and
+ http://www.gnu.org/software/grub/manual/grub.html)
+
+ Now it's time to create your own "boot menu":
+
+ # # Copy sample file
+ # cp /boot/grub/grub.conf.sample /boot/grub/grub.conf
+ # # Modify it for your system
+ # vi /boot/grub/grub.conf
+
+ For more information about setting up your own grub boot menu file:
+ http://www.gnu.org/manual/grub-0.92/html_mono/grub.html#Configuration
+
+ Last but not least - install/enable the bootmanager:
+ # # Run grub
+ # grub
+ grub> root (hdX,Y)
+ grub> setup (hdX)
+ grub> quit
+
+ Please correct the path & device names according your configuration.
+ Also see http://www.gnu.org/software/grub/manual/grub.html#Installation.
+ In the example above, X and Y need to be replaced with your hard drive
+ and grub partition.
+
+ That's all. Good luck ;)
+
+PRECAUTION
+
+ Installing a new boot manager is like modifiying the partition table
+ or installing a new system kernel. Please create a rescue disk first :)
+ This is a heavily patched version of grub - Use it at your own risk !
+
+Matt Housh <jaeger@crux.nu>
+
diff --git a/grub/grub.conf.sample b/grub/grub.conf.sample
new file mode 100644
index 000000000..5a066abfd
--- /dev/null
+++ b/grub/grub.conf.sample
@@ -0,0 +1,64 @@
+### Global settings
+
+## CRUX splash image
+splashimage (hd0,0)/boot/grub/crux03.xpm.gz
+## define special fore-/background colors for splash screen image
+foreground = FFFFFF
+background = AAAAAA
+
+## shaded text
+#shade 1
+
+## time to wait for user interaction
+timeout 5
+
+## default boot kernel
+default 0
+
+### GRUB Devices:
+##
+## Linux Grub
+## ======================
+## /dev/hda (hd0)
+## /dev/hda1 (hd0,0)
+## /dev/hdb (hd1)
+## /dev/hdb1 (hd1,0)
+## /dev/fd0 (fd0)
+
+### Remember:
+## The Linux kernel 2.4.19 has a bug which prevents using of devfs
+## device names (/dev/disc/disc0/part1,..). CRUX 0.9.4 comes with
+## 2.4.19 !
+
+## Default menu entries
+
+title CRUX
+kernel (hd0,0)/boot/vmlinuz root=/dev/hda1
+
+title CRUX
+kernel (hd0,0)/boot/vmlinuz.old root=/dev/hda1
+
+### Special cases
+
+## Boot special bootimage
+#title Memtest
+#kernel (hd0,0)/boot/memtest.bin
+
+## Boot Microsoft Windows(TM)
+#title Windows
+#root (hd0,5)
+#makeactive
+#chainloader +1
+
+## Boot from Floppy
+#title floppy
+#root (fd0)
+#chainloader +1
+
+## Boot with different /boot partition
+## / = /dev/hdb2 = (hd1,1)
+## /boot = /dev/hdb1 = (hd1,0)
+##
+#title CRUX GNU/Linux drive 2
+#kernel (hd1,0)/vmlinuz root=/dev/hdb2
+

Generated by cgit