You are not logged in.

#1 2010-03-15 01:18:47

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

GRUB2 1.98 package in AUR

IMPORTANT: 
The patches used in this package got merged in grub2-1.98-4 in extra.  I will keep the info as a reference, for those that want to try the extra package.

I'm gonna upload a new package tentatively named grub2-testcamp to text and hopefully fix the issues people are still having with grub2 (LVM, encrypted root, undetected OS, etc).


INSTALLATION
1. Users of grub or grub2, backup your current configs in case you will need them.
2. Users of grub2 from Arch extra repo, can update directly, then continue at step #4
3. Users of grub or grub2-gfxmenu, uninstall your current grub bootloader, then install grub2-1.98.
4. Install grub on your MBR by typing
    # grub-install /dev/xxx    (replace xxx for your boot drive)
5. Edit the file /etc/default/grub and make any changes you will need.
    Do NOT edit /boot/grub/grub.cfg by hand.  The file is generated by scripts.
6. To generate grub.cfg type:
    # grub-mkconfig -o /boot/grub/grub.cfg
    and proceed to check if the file is correct, if it is, you can safely reboot your PC.
7. If you have Windows, or other Linux/BSD distributions.  Edit the file /etc/grub.d/40_custom
    and add them at the bottom. Run  step #6 to generate grub.cfg with the new entries.
    This is a known issue, I'm working on it.

WHAT WORKS OK
* Arch style kernels and image names.
* A memtest86+ script that add it to the menu options automatically, if it is installed.
* Extra entries to allow icons on menu if using gfxtheme mode.
* Themes and wallpapers worked.  Themes made for the old gfx patch will likely crash grub.

WHAT NEEDS MORE INPUT
* LVM mounted partitions.  Debian has a patch for it in case is needed.

CURRENT ISSUES
1. Other OS's are not detected by 30_os-probe.  Reported by micky99
       That script depends on os-prober, which is not available in Arch. 
       I made a PKGBUILD for it, testing on another machine.
2. Encrypted root file system not detected, reported by goran'agar
       I will look at a patch to fix that issue.

To Debian readers
New patches were submitted to Debian but entry, and to upstream.

THEME
As promised, an Arch theme based from the Debian one, hosted in Megaupload.  Sorry for the Megaupload link, but don't have a ftp/web storage to hold the theme tar as needed in AUR.  When decompressing you will have 3 tars.  The theme, the binary package (i686), and package src that you can then decompress and rebuild. 

Any problem, or suggestion you found, please let me know.;)

Last edited by darkcoder (2010-03-18 20:02:01)

Offline

#2 2010-03-15 01:22:38

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

This is my grub.cfg as generated by grub-mkconfig, so people can compare your output and see if everything is ok.

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 81222792-bd9f-47d6-8d28-b4b59d93cbac
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768x24
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
  insmod ext2
  set root='(hd0,3)'
  search --no-floppy --fs-uuid --set 81222792-bd9f-47d6-8d28-b4b59d93cbac
  loadfont ($root)/usr/share/grub/themes/deep-aurora/dejavu_sans_10.pf2
  loadfont ($root)/usr/share/grub/themes/deep-aurora/dejavu_sans_12.pf2
  loadfont ($root)/usr/share/grub/themes/deep-aurora/dejavu_sans_bold_14.pf2
  insmod png
  insmod gfxmenu
  set theme=($root)/usr/share/grub/themes/deep-aurora/theme.txt
  set menuviewer=gfxmenu
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set a9a2ecca-a0bb-4d86-96ec-7304fe8e20da
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Arch Linux, with Linux vmlinuz26" --class archlinux --class gnu-linux --class gnu --class os {
        set gfxpayload=keep
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set a9a2ecca-a0bb-4d86-96ec-7304fe8e20da
        linux   /vmlinuz26 root=/dev/disk/by-uuid/81222792-bd9f-47d6-8d28-b4b59d93cbac ro  quiet
        initrd  /kernel26.img
}
menuentry "Arch Linux, with Linux vmlinuz26 Fallback" --class archlinux --class gnu-linux --class gnu --class os {
        set gfxpayload=keep
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set a9a2ecca-a0bb-4d86-96ec-7304fe8e20da
        echo    Loading Linux vmlinuz26 ...Loading Linux Fallback ...
        linux   /vmlinuz26 root=/dev/disk/by-uuid/81222792-bd9f-47d6-8d28-b4b59d93cbac ro  quiet
        echo    Loading initial ramdisk ...
        initrd  /kernel26-fallback.img
}
menuentry "Arch Linux, with Linux vmlinuz26 Fallback (recovery mode)" --class archlinux --class gnu-linux --class gnu --class os {
        set gfxpayload=keep
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set a9a2ecca-a0bb-4d86-96ec-7304fe8e20da
        echo    Loading Linux vmlinuz26 ...Loading Linux Fallback ...
        linux   /vmlinuz26 root=/dev/disk/by-uuid/81222792-bd9f-47d6-8d28-b4b59d93cbac ro single 
        echo    Loading initial ramdisk ...
        initrd  /kernel26-fallback.img
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" --class memtest86 --class gnu --class tool {
  insmod ext2
  set root='(hd0,1)'
  search --no-floppy --fs-uuid --set a9a2ecca-a0bb-4d86-96ec-7304fe8e20da
  linux16 ($root)/memtest86+/memtest.bin
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

Offline

#3 2010-03-15 05:28:00

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

Re: GRUB2 1.98 package in AUR

Thank you for your work darkcoder. I'll give it a go tomorrow.


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

#4 2010-03-15 05:40:34

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: GRUB2 1.98 package in AUR

you know that i have to delete the package no?
http://wiki.archlinux.org/index.php/AUR … NSUPPORTED

Check [core], [extra], and [community] for the package. If it is inside any of those repositories in ANY form, DO NOT submit the package (if the current package is broken or is lacking an included feature then please file a bug report in FlySpray).


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-03-15 16:44:49

michy99
Member
Registered: 2010-01-23
Posts: 21

Re: GRUB2 1.98 package in AUR

Tested with /boot on same partition as /, Arch on sda5, Ubuntu on sda1, and Window XP on sdb1. It did not find Ubuntu or Windows. If I use Ubuntu's Grub2, it finds Arch and Windows with no problem.

My grub.cfg:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 0b631bf5-c307-42eb-9a32-36a4114062b8
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 0b631bf5-c307-42eb-9a32-36a4114062b8
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Arch Linux, with Linux vmlinuz26" --class archlinux --class gnu-linux --class gnu --class os {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set 0b631bf5-c307-42eb-9a32-36a4114062b8
    echo    Loading Linux vmlinuz26 ...
    linux    /boot/vmlinuz26 root=/dev/disk/by-uuid/0b631bf5-c307-42eb-9a32-36a4114062b8 ro  quiet
    echo    Loading initial ramdisk ...
    initrd    /boot/kernel26.img
}
menuentry "Arch Linux, with Linux vmlinuz26 Fallback" --class archlinux --class gnu-linux --class gnu --class os {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set 0b631bf5-c307-42eb-9a32-36a4114062b8
    echo    Loading Linux vmlinuz26 ...Loading Linux Fallback ...
    linux    /boot/vmlinuz26 root=/dev/disk/by-uuid/0b631bf5-c307-42eb-9a32-36a4114062b8 ro  quiet
    echo    Loading initial ramdisk ...
    initrd    /boot/kernel26-fallback.img
}
menuentry "Arch Linux, with Linux vmlinuz26 Fallback (recovery mode)" --class archlinux --class gnu-linux --class gnu --class os {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set 0b631bf5-c307-42eb-9a32-36a4114062b8
    echo    Loading Linux vmlinuz26 ...Loading Linux Fallback ...
    linux    /boot/vmlinuz26 root=/dev/disk/by-uuid/0b631bf5-c307-42eb-9a32-36a4114062b8 ro single 
    echo    Loading initial ramdisk ...
    initrd    /boot/kernel26-fallback.img
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

Offline

#6 2010-03-15 16:56:17

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: GRUB2 1.98 package in AUR

michy99 wrote:

Tested with /boot on same partition as /, Arch on sda5, Ubuntu on sda1, and Window XP on sdb1. It did not find Ubuntu or Windows. If I use Ubuntu's Grub2, it finds Arch and Windows with no problem.

You need to edit the grub.cfg file to tell it where to find Ubuntu and windows.

Offline

#7 2010-03-15 17:55:00

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

wonder wrote:

you know that i have to delete the package no?
http://wiki.archlinux.org/index.php/AUR … NSUPPORTED

Check [core], [extra], and [community] for the package. If it is inside any of those repositories in ANY form, DO NOT submit the package (if the current package is broken or is lacking an included feature then please file a bug report in FlySpray).

Sorry, my bad.  Haven't been on Arch for like 3 years, and didn't checked the rules again.  But also I submitted as a separate package since the gfxcode is no longer a separate patch, is now integrated upstream.  So it make more sence in the form of plain grub(no -graphical, or -gfx) name on it.

Also I released here, and in AUR to get the community to test it prior to submit the PKGBUILD and patches to the bug tracker and dev mailing list.

michy99,  thanks for the input.  Can you upload your Ubuntu grub.cfg file, so I can take a look at it?  Since I dont have another OS, I will need that to test the scripts.

Last edited by darkcoder (2010-03-15 17:57:16)

Offline

#8 2010-03-15 18:01:43

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

Those that have Ubuntu, Windows or any OS installed in addition to Arch, add your non Arch entries to the bottom of /etc/grub.d/40_custom.  So you don't lose them on another grub-mkconfig run.

And I need one person with Ubuntu to upload the grub.cfg file generated by it.

Last edited by darkcoder (2010-03-15 18:02:09)

Offline

#9 2010-03-15 18:17:54

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

scio wrote:

You need to edit the grub.cfg file to tell it where to find Ubuntu and windows.

No, no, no editing of /boot/grub/grub.cfg.  The way upstream designed this grub is to generate the file by scripts stored in /etc/grub.d

Read my previous post and the 1st one about the file you edit to add custom or undetected entries.

Offline

#10 2010-03-15 18:36:26

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: GRUB2 1.98 package in AUR

darkcoder wrote:

No, no, no editing of /boot/grub/grub.cfg.  The way upstream designed this grub is to generate the file by scripts stored in /etc/grub.d
Read my previous post and the 1st one about the file you edit to add custom or undetected entries.

Ah sorry, I was working off my experience with the old package and the old betas, the mkconfig never worked right for me so I had to do it manually.
This seems like it's finally starting to really surpass GRUB by far now.

Offline

#11 2010-03-15 19:03:55

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

No problem scio, it took me some time to adjust too.  Even still when testing the package I end up openning grub.cfg.

BTW I think I found the issue with 30_os-probe.  It calls the command os-probe, which in fact is not part of grub2.  I'm gonna take a look at packages from other non Debian based distros to see if they use it anyway, or do any hack around it.

Last edited by darkcoder (2010-03-15 19:05:56)

Offline

#12 2010-03-15 19:42:01

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: GRUB2 1.98 package in AUR

Gentoo calls out Debian, seems like they are the driving force behind os-prober: http://en.gentoo-wiki.com/wiki/Grub2#os-prober

Offline

#13 2010-03-15 20:04:20

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: GRUB2 1.98 package in AUR

darkcoder wrote:

gfxcode is no longer a separate patch, is now integrated upstream.

I heard it was in experimental branch. It is in the main branch now?

Edit: So it is,
New in 1.98 - 2010-03-06:
* Graphical menu support.

Last edited by fsckd (2010-03-15 20:07:04)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#14 2010-03-16 00:09:00

michy99
Member
Registered: 2010-01-23
Posts: 21

Re: GRUB2 1.98 package in AUR

Here is my grub.cfg from Ubuntu. The Arch and Windows entries were created automatically by os_prober.

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 44e38238-e3a3-40d5-98cb-120d88e26e15
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    set quiet=1
    insmod ext2
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set 44e38238-e3a3-40d5-98cb-120d88e26e15
    linux    /boot/vmlinuz-2.6.31-14-generic root=UUID=44e38238-e3a3-40d5-98cb-120d88e26e15 ro   quiet splash
    initrd    /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    insmod ext2
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set 44e38238-e3a3-40d5-98cb-120d88e26e15
    linux    /boot/vmlinuz-2.6.31-14-generic root=UUID=44e38238-e3a3-40d5-98cb-120d88e26e15 ro single 
    initrd    /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
    linux16    /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Arch (on /dev/sda5)" {
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 0b631bf5-c307-42eb-9a32-36a4114062b8
    linux /boot/vmlinuz26 root=/dev/sda5
}
menuentry "Microsoft Windows XP Home Edition (on /dev/sdb1)" {
    insmod ntfs
    set root=(hd1,1)
    search --no-floppy --fs-uuid --set 609c66ea9c66ba64
    drivemap -s (hd0) ${root}
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

Unfortunately, I have managed to screw up my arch install, and I'm trying to figure out how to fix it without re-installing.

Offline

#15 2010-03-16 13:46:50

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: GRUB2 1.98 package in AUR

darkcoder wrote:
wonder wrote:

you know that i have to delete the package no?
http://wiki.archlinux.org/index.php/AUR … NSUPPORTED

Check [core], [extra], and [community] for the package. If it is inside any of those repositories in ANY form, DO NOT submit the package (if the current package is broken or is lacking an included feature then please file a bug report in FlySpray).

Sorry, my bad.  Haven't been on Arch for like 3 years, and didn't checked the rules again.  But also I submitted as a separate package since the gfxcode is no longer a separate patch, is now integrated upstream.  So it make more sence in the form of plain grub(no -graphical, or -gfx) name on it.

i'm going to delete this build in couples of hours. grub2 from extra was bumped, i didn't see any feature request on bugtracker and i don't see a point having that in aur. if you feel that is needed, submit it in aur with a different name.

Last edited by wonder (2010-03-16 16:14:04)


Give what you have. To someone, it may be better than you dare to think.

Offline

#16 2010-03-16 14:56:44

algorythm
Member
From: /usr/share/zoneinfo/Europe/FIN
Registered: 2009-07-17
Posts: 181

Re: GRUB2 1.98 package in AUR

darkcoder wrote:

IMPORTANT:  Do NOT edit /etc/grub.cfg by hand.  The file is generated by scripts.
6. To generate grub.cfg type

# grub-mkconfig -o /boot/grub/grub.cfg

A bit misleading for someone smile. Anyways, in which one does the upstream grub2 hold its config? At least the one in [extra] holds it in /boot/grub.

E: please try to read more carefully next time. I was *not* talking about the configs for grub-mkconfig in /etc/grub.d/.

Last edited by algorythm (2010-03-21 09:41:03)


“Talent you can bloom. Instinct you can polish.”  — Haikyuu!! (adapted)
“If everybody thought alike, no one would be thinking very much.”  — Walter Lippmann (adapted)
“The important thing is to be able, at any moment, to sacrifice what we are for what we could become.”  — Charles Dubois

Offline

#17 2010-03-16 16:47:23

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: GRUB2 1.98 package in AUR

algorythm wrote:

A bit misleading for someone smile. Anyways, in which one does the upstream grub2 hold its config? At least the one in [extra] holds it in /boot/grub.

The config files IS /boot/grub/grub.cfg, but YOU don't edit it, grub-mkconfig does.  You modify the /etc/grub.d/ files to make it do what you want.

Last edited by scio (2010-03-16 16:47:38)

Offline

#18 2010-03-16 19:54:20

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

watch out for grub2 1.98-2 in repos...  I updated my first post with the reasons.

Got a PKGBUILD for os-prober, now checking if it works as expected on Arch, before submitting it.

Offline

#19 2010-03-16 19:54:33

goran'agar
Member
From: Nothern Italy
Registered: 2009-05-19
Posts: 171

Re: GRUB2 1.98 package in AUR

WARNING for users with encrypted root.

I installed this update and discovered that I was affected by this Debian bug:

http://www.mail-archive.com/debian-bugs … 87872.html

The posted solution worked for me. Of course I had to edit the "linux" adding "cryptdevice=/dev/sda2:root"
because grub2 did not do it.

Last edited by goran'agar (2010-03-16 19:54:53)


Sony Vaio VPCM13M1E  - Arch Linux - LXDE

Offline

#20 2010-03-16 20:01:04

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

algorythm wrote:
darkcoder wrote:

IMPORTANT:  Do NOT edit /etc/grub.cfg by hand.  The file is generated by scripts.
6. To generate grub.cfg type

# grub-mkconfig -o /boot/grub/grub.cfg

A bit misleading for someone smile. Anyways, in which one does the upstream grub2 hold its config? At least the one in [extra] holds it in /boot/grub.

/boot/grub/grub.cfg is now a kind of boot script.  Users are not supposed to modify it by hand.  If you read step #5, just above the quote you made, it said the file you should modify now.

darkcoder wrote:

5. Edit the file /etc/default/grub and make any changes you will need.  IMPORTANT:  Do NOT edit /etc/grub.cfg by hand.  The file is generated by scripts.

Offline

#21 2010-03-16 20:03:48

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

Thanks goran'agar, I will look into it.  I have a copy of the Debian patches, but since they where a lot of them (like 15) I decided to apply them only if needed.

Offline

#22 2010-03-16 20:15:40

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

OMG they deleted my package without even looking at the differences....


LOL. cool

I missed the old Arch days.

Offline

#23 2010-03-16 20:22:39

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: GRUB2 1.98 package in AUR

darkcoder wrote:

OMG they deleted my package without even looking at the differences....


LOL. cool

I missed the old Arch days.

that happens when you don't read all messages. Read #4 #15.  After #4 i was thinking you got the idea.


Give what you have. To someone, it may be better than you dare to think.

Offline

#24 2010-03-16 20:31:59

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: GRUB2 1.98 package in AUR

This happens if people post duplicate pkgbuilds to AUR or the forums instead of sending it to the maintainer...

darkcoder wrote:

IMPORTANT: I noticed that there is a grub2 1.98-2  package that landed in the repos this morning (03/16/2010) that has the maintainer own reimplementation of one of my patches, but have 3 issues:
    1.  His patch do not add an entry to create a kernel using the kernel26-fallback.img

Now I notice it didn't...well the file is now installed as an .example file so I'll fix in in trunk for next release

darkcoder wrote:

2.  The CLASS variable, unlike the GRUB_DISTRIBUTOR cannot have spaces.  Instead of defining it as:
          CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]' ) ${CLASS}"
         it must be defined as:
          CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]' | tr -d ' ') ${CLASS}"
         While this do not affect the menu functionality, you will not be able to see an Arch icon on gfxmode.

why is that?

darkcoder wrote:

3.  He copied the 05_theme script entry as used by Debian, but that has his problems as I reported

No not really but I've looked at it and the location number (05) seemed fine to me for what was needed. Don't see what the problem is here. I can't imagine we will go for a graphical grub2 by default.

Last edited by pressh (2010-03-16 20:42:36)

Offline

#25 2010-03-16 21:11:40

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: GRUB2 1.98 package in AUR

pressh wrote:

This happens if people post duplicate pkgbuilds to AUR or the forums instead of sending it to the maintainer...

darkcoder wrote:

IMPORTANT: I noticed that there is a grub2 1.98-2  package that landed in the repos this morning (03/16/2010) that has the maintainer own reimplementation of one of my patches, but have 3 issues:
    1.  His patch do not add an entry to create a kernel using the kernel26-fallback.img

Now I notice it didn't...well the file is now installed as an .example file so I'll fix in in trunk for next release

darkcoder wrote:

2.  The CLASS variable, unlike the GRUB_DISTRIBUTOR cannot have spaces.  Instead of defining it as:
          CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]' ) ${CLASS}"
         it must be defined as:
          CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]' | tr -d ' ') ${CLASS}"
         While this do not affect the menu functionality, you will not be able to see an Arch icon on gfxmode.

why is that?

For gfx themes.  They used the CLASS entry which is not visible on the menus, to determine the icon to display.


pressh wrote:
darkcoder wrote:

3.  He copied the 05_theme script entry as used by Debian, but that has his problems as I reported

No not really but I've looked at it and the location number (05) seemed fine to me for what was needed. Don't see what the problem is here. I can't imagine we will go for a graphical grub2 by default.

Well if you keep only menu color entries, is fine, but if you place a wallpaper, and start testing quiet, and normal menu modes (no gfx) you will see what i mean.

More info here http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564180.  Btw skipped the first post, in the next ones I explained better.

But as a joke, earlier today (before the erase) I sent a message to bugs.debian.org about my revised patches, and to look here....     What a surprise they will get.  LOL

Offline

Board footer

Powered by FluxBB