grub.yeniden.paketlendi

This commit is contained in:
milisman 2016-07-11 20:51:40 +00:00
parent 64a67c8f5d
commit 96fa37c093
5 changed files with 85 additions and 56 deletions

View File

@ -1,37 +0,0 @@
# Config file for GRUB2 - The GNU GRand Unified Bootloader
# /boot/grub/grub.cfg
# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,2)
# /dev/sda3 (hd0,3)
#
# Timeout for menu
set timeout=5
# Set default boot entry as Entry 0
set default=0
# (0) NuTyX Linux Maintence
menuentry "NuTyX Linux Maintenance" {
set root=(hd0,1)
linux /boot/kernel ro
initrd /boot/nutyx-initrd
}
# (1) NuTyX Linux
menuentry "NuTyX Linux " {
set root=(hd0,1)
linux /boot/kernel root=/dev/sda1 ro
}
## (1) Windows
#menuentry "Windows" {
#set root=(hd0,3)
#chainloader +1
#}

View File

@ -0,0 +1,45 @@
#
# /boot/grub/grub.cfg - sample grub2 configuration file
#
# This is only a sample, you will need to check/edit the root value
# or UUID used for your configuration.
# See the official grub documentation for more information.
# Set menu colors
set menu_color_normal=white/blue
set menu_color_highlight=light-blue/white
# Set menu display time
set timeout=10
# Set the default boot entry (first is 0)
set default=0
# Set the root variable - grub2 uses this to find files if the
# root device is not specified in the entry itself.
# It can be set explicitly like so:
#set root='(hd0,msdos2)'
# Or it can be set using grub2's builtin search feature like so:
#search --no-floppy --fs-uuid --set root xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb
# The string xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb should be replaced with
# the proper UUID for the root device. It can be found using 'blkid' from
# util-linux.
# Boot entries:
menuentry 'milis-atilla' {
linux /boot/kernel root=/dev/sda1 ro quiet
initrd /boot/initramfs
}
# Windows 7
menuentry "Windows 7" {
set root='(hd0,msdos1)'
chainloader +1
}

View File

@ -0,0 +1,11 @@
--- 00_header.in.orig 2015-01-01 16:27:17.433852566 -0600
+++ 00_header.in 2015-01-01 16:27:28.603852605 -0600
@@ -142,7 +142,7 @@
if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT}"` ; then
EOF
else
- for dir in "${pkgdatadir}" "`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"`" /usr/share/grub ; do
+ for dir in "${pkgdatadir}" "`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"`" /usr/share/grub /usr/lib/grub/fonts ; do
for basename in unicode unifont ascii; do
path="${dir}/${basename}.pf2"
if is_path_readable_by_grub "${path}" > /dev/null ; then

View File

@ -0,0 +1,10 @@
--- 10_linux.in.orig 2012-09-05 13:34:26.947842426 -0500
+++ 10_linux.in 2012-09-05 13:34:55.967842887 -0500
@@ -193,6 +193,7 @@
initrd=
for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
"initrd-${version}" "initramfs-${version}.img" \
+ "initramfs-${version}.gz" \
"initrd.img-${alt_version}" "initrd-${alt_version}.img" \
"initrd-${alt_version}" "initramfs-${alt_version}.img" \
"initramfs-genkernel-${version}" \

View File

@ -1,30 +1,30 @@
# Description: The GRUB package contains the GRand Unified Bootloader.
# Description: A Multiboot boot loader
# URL: http://www.gnu.org/software/grub/
# Packager: pierre at nutyx dot org
# Pcakager: milisarge
# Depends on:
name=grub
version=2.00
version=2.02-beta3
release=1
source=(ftp://ftp.gnu.org/gnu/grub/grub-2.00.tar.xz\
grub.cfg)
PKGMK_GROUPS=(man locale)
source=(http://alpha.gnu.org/gnu/grub/grub-2.02~beta3.tar.xz \
grub2-00_header.diff grub2-10_linux.diff grub.cfg.sample)
build() {
cd grub-2.00
export CFLAGS="${CFLAGS} -Wno-error"
cd grub-2.02~beta3
# fix for glibc 'gets' removal
sed -i -e '/gets is a/d' grub-core/gnulib/stdio.in.h
unset CXXFLAGS
patch -i $SRC/grub2-00_header.diff util/grub.d/00_header.in
patch -i $SRC/grub2-10_linux.diff util/grub.d/10_linux.in
./configure --prefix=/usr \
--sysconfdir=/etc \
--sbindir=/sbin \
--disable-grub-emu-usb \
--sysconfdir=/etc \
--enable-device-mapper \
--disable-efiemu \
--infodir=/usr/share/info \
--disable-werror
--disable-grub-mount
make
make DESTDIR=$PKG install
install -d $PKG/boot/grub
rm -rf $PKG/usr/share/info/dir
install -Dm644 ../grub.cfg \
$PKG/boot/grub/grub.cfg.ornek
rm -rf $PKG/usr/share/{info,grub/themes}
}