[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: GRUB Configuration Application/KCModule
From:       Konstantinos Smanis <kon.smanis () gmail ! com>
Date:       2008-08-26 6:48:02
Message-ID: 200808260948.02837.kon.smanis () gmail ! com
[Download RAW message or body]

On Monday 25 August 2008 22:07:54 you wrote:
> On Monday 25 August 2008 17:53:25 Konstantinos Smanis wrote:
> > On Monday 25 August 2008 14:44:18 you wrote:
> > > The user needs to be made aware of that then. Otherwise, you'll have
> > > the system upgrader overwrite your changes, potentially making the
> > > system unbootable (without even being told that the grub configuration
> > > has been reset).
> > >
> > > Ideally, your app would manipulate the magic lines in the config files,
> > > and then run update-grub where appropriate. That way you make sure that
> > > those tools don't get in each others way. It *does* mean you have to
> > > have different ways of setting up the grub config file, based on the
> > > distribution (or do all of them use the update-grub method by now ...)?
> >
> > I am not really sure I understand the root of the issue. The update-grub
> > script claims to modify *only* the magic -commented- lines (at least
> > that's what it says, I have never used it in practice) and the entries
> > which are within them. KGRUBEditor doesn't touch these lines. Only
> > preserves them as is.
> >
> > How can the other options be modified? It sounds to me as if the
> > update-grub script is kind of peculiar...
> > 
> > As it seems I have to give my Kubuntu partition a try again to see the
> > exact behaviour of update-grub (not all distros use update-grub).

As suspected, the update-grub script only modifies the entries within the magic 
lines. I did an update yesterday to my Kubuntu installation which as a result 
updated its /boot/grub/menu.lst for the new kernel to appear and as can be 
seen in the attached diff, only the Ubuntu entries were modified. Nothing else 
at all.

I should, however, run some tests to verify this. But for the time being I 
think that the magic lines are appropriately handled by KGRUBEditor.

["menu.diff" (text/x-patch)]

--- menu.lst.preupdate	2008-08-25 23:11:15.000000000 +0300
+++ menu.lst	2008-08-25 23:27:20.000000000 +0300
@@ -79,15 +79,21 @@
 
 ## ## End Default Options ##
 
-title Ubuntu 8.04.1, kernel 2.6.24-19-generic
-root (hd1,4)
-kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=03ce766e-e1ab-454a-a04d-5b6438b0ffb0 ro quiet splash
-initrd /boot/initrd.img-2.6.24-19-generic
+title		Ubuntu 8.04.1, kernel 2.6.24-19-generic
+root		(hd1,4)
+kernel		/boot/vmlinuz-2.6.24-19-generic root=UUID=03ce766e-e1ab-454a-a04d-5b6438b0ffb0 ro quiet splash
+initrd		/boot/initrd.img-2.6.24-19-generic
+quiet
 
-title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
-root (hd1,4)
-kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=03ce766e-e1ab-454a-a04d-5b6438b0ffb0 ro single
-initrd /boot/initrd.img-2.6.24-19-generic
+title		Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
+root		(hd1,4)
+kernel		/boot/vmlinuz-2.6.24-19-generic root=UUID=03ce766e-e1ab-454a-a04d-5b6438b0ffb0 ro single
+initrd		/boot/initrd.img-2.6.24-19-generic
+
+title		Ubuntu 8.04.1, memtest86+
+root		(hd1,4)
+kernel		/boot/memtest86+.bin
+quiet
 
 ### END DEBIAN AUTOMAGIC KERNELS LIST
 


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic