First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 7903
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Donny Davies (RETIRED) <woodchip@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Donny Davies (RETIRED) <woodchip@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
boot.eclass boot.eclass text/plain Maurizio Disimino 2002-09-15 09:37 0000 1.57 KB Details
boot.txt boot.eclass text/plain Maurizio Disimino 2002-09-18 08:05 0000 2.10 KB Details
boot.eclass boot.eclass updated. PLEASE test and report text/plain Maurizio Disimino 2002-09-19 09:12 0000 2.13 KB Details
boot.eclass final (I hope) boot.eclass text/plain Maurizio Disimino 2002-09-20 07:38 0000 2.19 KB Details
mount-boot.eclass mount-boot.eclass text/plain Maurizio Disimino 2002-09-21 10:02 0000 2.17 KB Details
mount-boot.diff oops :) I'm sorry, here's the diff. text/plain Maurizio Disimino 2002-09-23 08:55 0000 2.83 KB Details
mount-boot.diff revised mount-boot.diff text/plain Maurizio Disimino 2002-09-23 09:02 0000 2.75 KB Details
grub.diff.tgz grub.diff.tgz application/octet-stream Markus Krainer 2002-09-23 13:47 0000 1.94 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 7903 depends on: Show dependency tree
Bug 7903 blocks: 8256
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-09-13 23:41 0000
Just so I dont forget..

Somebody looking to familiarize themselves with eclasses or such might want to 
look at making grub and lilo use a consistent pkg_setup() method.

Seems it keeps getting tweaked in one pkg, then the other, would be nice to 
have them share a function or something :/

Not volunteering immediately.  :)

------- Comment #1 From Maurizio Disimino 2002-09-15 09:37:47 0000 -------
Created an attachment (id=3946) [edit]
boot.eclass

Well, here's an initial import a bit reworked from the lilo pkg_setup().
Works fine here with lilo-22.3.3.ebuild. Maybe you can start CC'ing
people to test and improve this eclass :) azarah, spanky, seemant and others.

Maurizio

------- Comment #2 From Markus Krainer 2002-09-16 08:34:39 0000 -------
Please have also a look at bug #6820 where I submitted an ebuild for 
grub-0.92-r1. This ebuild contains a rewrite of pkg_setup that also takes 
into account the possibility of /boot beeing mounted read-only and remounts
it rw.

Markus

------- Comment #3 From Martin Schlemmer (RETIRED) 2002-09-17 14:00:25 0000 -------
Havent looked yet at Markus Krainer's stuff (didnt feel like going back to
galeon1 and USE=-gtk2 moz to get it working properly), but that in lilo is 
tested, and works well.  We might just add the "ro" stuff to it.

------- Comment #4 From Donny Davies (RETIRED) 2002-09-17 14:58:32 0000 -------
j2ee in #gentoo asked me to comment on this.

not sure why, but here my comment:

yes, i do want this to get completed, that why i reported it as a bug :p
no, i dont want to code it, thats why i hoped somebody else would :p
im happy to see somebody jumped up to it :p

yes, people, please *do* make sure the eclass gets the best parts from lilo and 
grub and make it as good as can be.  i got tired of seeing one package get a 
nice fix, then the other get a fix, then they get out of sync.. you know how 
the rest goes.

so go ahead and commit the sucker, and change the .ebuilds to use it :p

------- Comment #5 From Maurizio Disimino 2002-09-18 08:05:37 0000 -------
Created an attachment (id=3993) [edit]
boot.eclass 

boot.eclass with support for /boot mounted as ready-only.
thanks Markus.
PLEASE test.

Maurizio aka j2ee

------- Comment #6 From Maurizio Disimino 2002-09-19 09:12:46 0000 -------
Created an attachment (id=4008) [edit]
boot.eclass updated. PLEASE test and report

------- Comment #7 From Maurizio Disimino 2002-09-20 07:38:34 0000 -------
Created an attachment (id=4026) [edit]
final (I hope) boot.eclass

this eclass works has been tested with lilo and grub and works fine.
Someone should update the lilo & grub ebuild to include this.

Maurizio

------- Comment #8 From Markus Krainer 2002-09-20 10:23:19 0000 -------
Maurizio,

consider /boot not mounted and the following fstab entry:
/dev/hda1   /boot       ext2        ro,noatime

then your pkg_setup will mount /boot read-only!

Markus


------- Comment #9 From Donny Davies (RETIRED) 2002-09-20 13:43:32 0000 -------
alright i added the last attachment as

  mount-boot.eclass

more testing needed; if you have another fix for this in
the meantime, attach as a patch against the .eclass please...

thank you very much to everybody involved for your continuing
contributions/participation!  i really appreciate it :)

------- Comment #10 From SpanKY 2002-09-20 22:38:20 0000 -------
sys-apps/quik <- you think you want to incorporate this eclass into it too ?

------- Comment #11 From Maurizio Disimino 2002-09-21 10:02:34 0000 -------
Created an attachment (id=4052) [edit]
mount-boot.eclass

markus: tnx, fixed :)
spanky: think so
woodchip: It's your turn now :) Works fine here with both lilo and grub.

Maurizio

------- Comment #12 From SpanKY 2002-09-21 23:13:33 0000 -------
sys-apps/memtest86 <- might want to throw into this sucker too :D

------- Comment #13 From Donny Davies (RETIRED) 2002-09-22 19:01:39 0000 -------
if people could try lilo-22.3.3-r1 and comment please.

please, again, if you have a fix, attach it as a unified
diff against the eclass in portage, not the whole eclass,
ive already spent time cleaning whitespace issues, so... :)

markus, did you have an update for grub-0.92, aside from
the eclass addition?  i think you posted an -r1 attachment,
but again i cant easily see atm what your changes were
if any (or just related to the eclass).

hopefully a bunch of these lilo/grub related bugs can be
closed up fairly soon (*yay*).  im aware memtest86 should
use the eclass too ;).

------- Comment #14 From Maurizio Disimino 2002-09-23 08:55:59 0000 -------
Created an attachment (id=4100) [edit]
oops :) I'm sorry, here's the diff.

------- Comment #15 From Maurizio Disimino 2002-09-23 09:02:36 0000 -------
Created an attachment (id=4101) [edit]
revised mount-boot.diff

auff .. I was still naming the eclass "boot" instead of "mount-boot"
fixed.

Maurizio

------- Comment #16 From SpanKY 2002-09-23 11:41:36 0000 -------
*** Bug 8256 has been marked as a duplicate of this bug. ***

------- Comment #17 From Markus Krainer 2002-09-23 13:47:37 0000 -------
Created an attachment (id=4106) [edit]
grub.diff.tgz

contains grub.ebuild.diff (0.92 to 0.92-r2!) and ChangeLog.diff

------- Comment #18 From Donny Davies (RETIRED) 2002-09-29 20:33:44 0000 -------
okay i've committed a bunch of work on this into CVS.

as for the last attachment re: grub, i'll look at that asap.

any known problems with either grub-0.92 or lilo-22.3.3-r1?
im getting awefully itchy on unmasking both soon.



------- Comment #19 From Donny Davies (RETIRED) 2002-10-02 07:06:40 0000 -------
i merged the last of markus' changes into grub-0.92-r1

that pretty much completes this item.

thanks again to everyone.

First Last Prev Next    No search results available      Search page      Enter new bug