Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub + reiser4 ebuild request
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1902
Location: Poland

PostPosted: Wed Jan 04, 2006 12:48 pm    Post subject: Grub + reiser4 ebuild request Reply with quote

Could someone pls do an ebuild for Grub with reiser4 support?
Full version (source) is available at:
ftp://ftp.namesys.com/pub/reiser4progs/LATEST_GRUB

It's a .tar.gz file (I think).
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1551

PostPosted: Wed Jan 04, 2006 7:37 pm    Post subject: Reply with quote

hmm, you may have a problem with that ;)

the latest gentoo ebuild is patched for reiser4, you need to uncomment something in the ebuild, and re-digest it in the overlay.

I could not get it to work with reiser4, it built, it booted, but to no graphics, only a menu at best, most of the time it also booted to a terminal.

may be best to just use a boot partition ext2/ext3 ;)
_________________
JOIN IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
Zen bugs/requests?: http://zen-kernel.org/issues
--
Join: ARCFPWDLVEFOTTSBNA - Anti-Rice club for people who don't like volcanoes except for on the TVs sometimes but not always
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1902
Location: Poland

PostPosted: Wed Jan 04, 2006 7:49 pm    Post subject: Reply with quote

Yes, it used to have that patch (I used it on my gentoo laptop during "conrad livecd 0.1" times ;) ) but now NOOOOOOOOO, Gentoo devs removed it of course to the joy of all of us that have only swap/root partitions...
It worked for me, and works till this day.
I compiled LATEST_GRUB cleanly by hand, but "make install" does not create any /boot/grub files, so configuring it by hand is big pain in arse :)
Back to top
View user's profile Send private message
dirtyepic
Developer
Developer


Joined: 22 Oct 2004
Posts: 1614
Location: sk.ca

PostPosted: Sun Jan 08, 2006 6:34 am    Post subject: Reply with quote

a) reiser4 support in GRUB will only be added if and when reiser4 makes it into the mainline kernel.
b) the current GRUB patch for reiser4 breaks bootup for some systems who don't have a r4 boot partition. bug #111885
c) it's pretty easy to just add the r4 patch to the GRUB ebuild yourself if it works for you.
d) why on earth would you want a reiser4 boot partition in the first place? :P

the patch is @ ftp://ftp.namesys.com/pub/reiser4progs/LATEST_GRUB_PATCH
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Tue Jan 17, 2006 5:31 pm    Post subject: Reply with quote

Quote:
d) why on earth would you want a reiser4 boot partition in the first place?


Because he can never remember to sync or umount /boot after copying over a new kernel image and hitting the reset button to reboot and he's hoping atomic writes will mean he can.

Also that R4 is much faster so its going to boot faster by saving time loading one 1.5MB file at boot time right? :roll:
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1902
Location: Poland

PostPosted: Tue Jan 17, 2006 8:38 pm    Post subject: Reply with quote

No, it's just because I don't have another empty space for primary partition (for /boot):
Code:

fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1200     9638968+   7  HPFS/NTFS
/dev/sda2            1201        1250      401625   82  Linux swap / Solaris
/dev/sda3            1251        5500    30121875   83  Linux
/dev/sda4            5501       30401   200017282+   f  W95 Ext'd (LBA)
/dev/sda5            5501       30401   200017251    7  HPFS/NTFS
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Tue Jan 17, 2006 9:40 pm    Post subject: Reply with quote

why is your swap on a primary ?

btw if you have grub in MBR you dont need to have /boot as primary either.
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Tue Jan 17, 2006 11:16 pm    Post subject: Reply with quote

I'd like an ebuild for 1.92 since I can't get 1.91 to build at all.

I've never added a patch to an ebuild. Might some kind soul help me with an ebuild with this patch, and perhaps for 1.92?
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Tue Jan 17, 2006 11:51 pm    Post subject: Reply with quote

If you have a patch that you know to work with the released source just look at some other ebuilds, most have at least one patch.

Copy the std ebuild to the corresponding place in you overlay directory.
Add the patch to a subdir called files.
Mod the ebuild with an "epatch" line to call in the patch.
You'll then need to run ebuild digest on your .ebuild to calculate new checksum manifests.

That's the outline , +rtfm , +search for the forum howto write and ebuild.

Still dont see any use for R4 in grub, but if you really want to ...

HTH 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1902
Location: Poland

PostPosted: Wed Jan 18, 2006 5:46 am    Post subject: Reply with quote

Gentree wrote:
why is your swap on a primary ?

btw if you have grub in MBR you dont need to have /boot as primary either.


I didn't know that I can use ext partitions, I was installing gentoo using slightly modified disk layout taken from handbook.
Back to top
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Wed Jan 18, 2006 6:56 am    Post subject: Reply with quote

Gentree wrote:
If you have a patch that you know to work with the released source just look at some other ebuilds, most have at least one patch.

Copy the std ebuild to the corresponding place in you overlay directory.
Add the patch to a subdir called files.
Mod the ebuild with an "epatch" line to call in the patch.
You'll then need to run ebuild digest on your .ebuild to calculate new checksum manifests.

That's the outline , +rtfm , +search for the forum howto write and ebuild.

Still dont see any use for R4 in grub, but if you really want to ...

HTH 8)


Thanks. I'll give that a try when I get home in the morning.

The last couple builds in portage had the patch, so I was able to use Reiser4 without having to patch manually.

I guess my thinking is if reiser4 is better than ext3, then why not use it on the boot partition? It didn't make sense not to. With atomic writes, I'm less likely to loss vital data on the all-important boot sector with a hard-reboot.
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Wed Jan 18, 2006 11:34 am    Post subject: Reply with quote

mbar wrote:
Gentree wrote:
why is your swap on a primary ?

btw if you have grub in MBR you dont need to have /boot as primary either.


I didn't know that I can use ext partitions, I was installing gentoo using slightly modified disk layout taken from handbook.


Yeah, I guessed that you hadn't realised, it was more a suggestion than a question.

I think most people make poor choices the first time around until they get to know best way of organising the disk.

I would suggest using something like gparted to reduce your huge ntfs partition a bit. Then add in some new logicals for gentoo. 50M is ample for /boot


You may also like to add a fat32 partition that can be used as common area between the two systems. This will have full rw acces from both.

captive-ntfs can be installed to write to your ntfs and seems pretty reliable now but it's not quite as convient as fat32 which is fully integrated. You always have read acces to your ntfs as well.

enderander wrote:

I guess my thinking is if reiser4 is better than ext3, then why not use it on the boot partition? It didn't make sense not to. With atomic writes, I'm less likely to loss vital data on the all-important boot sector with a hard-reboot.


That's why I posted the cheaky comments above.

R4 is not better than ext3 , it's different. There are pros and cons to both . Since you hardly ever write to /boot the atomic arguement is not really relevant , neither is any speed comparison.

What I would think is of paramount importance is to have a stable, universally working fs to at least start booting your system and to give you acces to grub.

Next time there's R4 issue do you want a BIOS message and to find your liveCDs can not even access you R4 partitions or do you want grub , where you can boot to a backup kernel and fix it?

I have 2/3 of my system on R4 but I would never think of using it for /boot.

HTH 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
philipuso
n00b
n00b


Joined: 13 Jan 2004
Posts: 27

PostPosted: Tue Jan 24, 2006 7:48 pm    Post subject: Reply with quote

I'm trying to patch grub-1.92.ebuild with the process outlined below: (Note I'm a newbie to building ebuilds but have read the developer docs)

Quote:
Copy the std ebuild to the corresponding place in you overlay directory.
Add the patch to a subdir called files.
Mod the ebuild with an "epatch" line to call in the patch.
You'll then need to run ebuild digest on your .ebuild to calculate new checksum manifests.


I get an error stating this:
Quote:
!!! Name error in : missing a version or name part.
!!! Error: PF is null ''; exiting.


After i do an:
Quote:
ebuild digest grub-1.92.ebuild
in the /usr/local/portage/sys-boot/grub directory

I've tried assigning the PF variable in the right section of the ebuild: Same error
Quote:
PF="grub-1.92"



My edited ebuild in the overlay looks like this:
Quote:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-1.92.ebuild,v 1.1 2006/01$
inherit mount-boot eutils flag-o-matic toolchain-funcs

DESCRIPTION="GNU GRUB 2 boot loader"
HOMEPAGE="http://www.gnu.org/software/grub/"
SRC_URI="mirror://gentoo/${P}.tar.gz
ftp://alpha.gnu.org/gnu/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="2"
KEYWORDS="-*"
IUSE="static netboot custom-cflags"

DEPEND=">=sys-libs/ncurses-5.2-r5
dev-libs/lzo"
PROVIDE="virtual/bootloader"
PF="grub-1.92"
pkg_setup() {
if use amd64 ; then
if ! has_m32 ; then
eerror "Your compiler seems to be unable to compile 32b$ eerror "If you are on amd64, make sure you compile gcc $ echo
eerror " USE=multilib FEATURES=-sandbox"
die "Cannot produce 32bit objects!"
fi

ABI_ALLOW="x86"
ABI="x86"
fi
}

src_unpack() {
unpack ${A}
cd "${S}"
epatch /usr/local/portage/sys-boot/grub/files/patch
}

src_compile() {
use custom-cflags || unset CFLAGS
use static && append-ldflags -static

econf \
--prefix=/ \
--datadir=/usr/lib \
|| die "econf failed"
emake || die "making regular stuff"
}

src_install() {
make DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
}


Last edited by philipuso on Tue Jan 24, 2006 8:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Tue Jan 24, 2006 7:57 pm    Post subject: Reply with quote

Quote:
I get an error stating this:


when you do what ?

see the ebuild howto for definitions of PF , it may become clearer.
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
philipuso
n00b
n00b


Joined: 13 Jan 2004
Posts: 27

PostPosted: Tue Jan 24, 2006 8:07 pm    Post subject: Reply with quote

After i do an:
Quote:
ebuild digest grub-1.92.ebuild


I've tried assigning the PF variable: Same error
Quote:
PF="grub-1.92"
Back to top
View user's profile Send private message
philipuso
n00b
n00b


Joined: 13 Jan 2004
Posts: 27

PostPosted: Tue Jan 24, 2006 8:26 pm    Post subject: Reply with quote

Problem solved:


Quote:
ebuild grub-1.92.ebuild digest



instead of

Quote:
ebuild digest grub-1.92.ebuild
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 764
Location: Hoofddorp / The Netherlands

PostPosted: Wed Jan 25, 2006 10:32 pm    Post subject: Reply with quote

philipuso wrote:
src_unpack() {
unpack ${A}
cd "${S}"
epatch /usr/local/portage/sys-boot/grub/files/patch
}
AAAAH that epatch line is evil :wink:

Quickly change it to
Code:
epatch ${FILESDIR}/patch
and we might be just in time to save your soul :D
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Wed Jan 25, 2006 11:44 pm    Post subject: Reply with quote

philipuso wrote:
Problem solved:


Quote:
ebuild grub-1.92.ebuild digest



instead of

Quote:
ebuild digest grub-1.92.ebuild


you see my point? If you'd posted the command that failed I could have told you straight away.

Just remember we dont have a vnc to your console :wink:
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum