From kde-devel Mon Aug 25 11:44:18 2008 From: Sebastian =?iso-8859-15?q?K=FCgler?= Date: Mon, 25 Aug 2008 11:44:18 +0000 To: kde-devel Subject: Re: GRUB Configuration Application/KCModule Message-Id: <200808251344.25682.sebas () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=121967117825043 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1210110895==" --===============1210110895== Content-Type: multipart/signed; boundary="nextPart1229298.9C2jBYhi87"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1229298.9C2jBYhi87 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 22 August 2008 08:59:53 Konstantinos Smanis wrote: > On Friday 22 August 2008 03:21:01 Sebastian K=FCgler wrote: > > Hi Konstantinos, > > > > On Tuesday 12 August 2008 14:08:36 Konstantinos Smanis wrote: > > > I am developing a GRUB Configuration application, named KGRUBEditor > > > (http://www.kde-apps.org/content/show.php/KGRUBEditor?content=3D75442) > > > > Does your application handle the magic lines that Debian and Ubuntu add > > to the top, and which are then turned into a config file by update-grub? > > > > (Otherwise, each time a new kernel is installed (and update-grub run as > > an effect of that), you'll loose custom made changes without warning. > > That was the issue last time I reviewed an application similar to yours. > > Well, for the past 2 releases AutoMagic is recognised and does not get > deleted from the file (all other comments are automatically removed). That > means that KGRUBEditor also recognises which entries(=3Dtitles in GRUB > terminology) are "protected" from AutoMagic and acts accordingly (eg. the > user cannot move them out of the AutoMagic boundaries). > > I am not sure if this is what you really meant, because KGRUBEditor can't > handle the AutoMagic options (eg. defoptions, howmany, savedefault etc.) > These options are just preserved and if the user wants to edit them, he > should go manual-editing. The user needs to be made aware of that then. Otherwise, you'll have the=20 system upgrader overwrite your changes, potentially making the system=20 unbootable (without even being told that the grub configuration has been=20 reset). Ideally, your app would manipulate the magic lines in the config files, and= =20 then run update-grub where appropriate. That way you make sure that those=20 tools don't get in each others way. It *does* mean you have to have differe= nt=20 ways of setting up the grub config file, based on the distribution (or do a= ll=20 of them use the update-grub method by now ...)? =2D-=20 sebas http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9=20 --nextPart1229298.9C2jBYhi87 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUASLKbGWdNh9WRGQ75AQJzzAf8CV14B6oN3pqyQAiFu9sCjQ69W9k31CK8 TiMjjjiO2qPJkWlkCo9eHw8ln1/bWlySHkQV81t4wJRzq5cDXowD8oC1rqT9cxVa tHmh7iyC/0hIaltDxXw8wx/Zk2Ij/10QZ/XbX7cFGjBZqEiAFv69YzlVdVt8emNV PeNtysQNtFhMDXsIlOHr5qN0p1bg9kOvJVD7CPMMUE+ooJpfB/WiG3TqjQhUMXVt 9umpJ3HnwmXZftkxur0BPNTaLXK84sTG+VBAoIAPBelnMPrk/4rWoGtq+NiHXiHd wPh3Lkt9CNkdMFdQz2I6icHv4Cj6sONFhRg8/z4nsql9pvsWUoqR0A== =glea -----END PGP SIGNATURE----- --nextPart1229298.9C2jBYhi87-- --===============1210110895== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1210110895==--