* About grub.cfg{.new,} generation
@ 2011-01-12 15:00 appzer0
2011-01-12 15:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 3+ messages in thread
From: appzer0 @ 2011-01-12 15:00 UTC (permalink / raw)
To: grub-devel
Hello,
I'd like to have some info about the 'grub-mkconfig script'. I'm
packaging grub 1.98.
Tell me if I'm wrong ; this script generates a '/boot/grub/grub.cfg.new'
then it renames it to '/boot/grub/grub.cfg'.
I see a line saying: echo /boot/grub | sed "s,x,x" ; what is it used
for? The sed command does not change anything here, I think.
The problem is that slackware and other distributions use a "*.new"
renaming pattern when upgrading packages, in order to not overwrite
important config files. Then the user has to deal with these .new files,
rename, overwrite or toss away.
If 'grub-mkconfig' is really doing what I think it does, then it would
just overwrite this important file, '/boot/grub/grub.cfg.new'.
Sorry for my english.
appzer0
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: About grub.cfg{.new,} generation
2011-01-12 15:00 About grub.cfg{.new,} generation appzer0
@ 2011-01-12 15:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-12 16:07 ` appzer0
0 siblings, 1 reply; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-01-12 15:20 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]
On 01/12/2011 04:00 PM, appzer0 wrote:
> Hello,
>
> I'd like to have some info about the 'grub-mkconfig script'. I'm
> packaging grub 1.98.
>
In few days you should be able to package 1.99.
> Tell me if I'm wrong ; this script generates a
> '/boot/grub/grub.cfg.new' then it renames it to '/boot/grub/grub.cfg'.
Right (modulo additional check)
> I see a line saying: echo /boot/grub | sed "s,x,x" ; what is it used
> for? The sed command does not change anything here, I think.
>
You can change the "s,x,x" part adding --transform command line option
to configure. It's useful to change all the pathes used.
> The problem is that slackware and other distributions use a "*.new"
> renaming pattern when upgrading packages, in order to not overwrite
> important config files. Then the user has to deal with these .new
> files, rename, overwrite or toss away.
>
> If 'grub-mkconfig' is really doing what I think it does, then it would
> just overwrite this important file, '/boot/grub/grub.cfg.new'.
>
grub.cfg shouldn't be packaged at all. It's autogenerated on the target
system.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: About grub.cfg{.new,} generation
2011-01-12 15:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-01-12 16:07 ` appzer0
0 siblings, 0 replies; 3+ messages in thread
From: appzer0 @ 2011-01-12 16:07 UTC (permalink / raw)
To: grub-devel
Le 12/01/2011 16:20, Vladimir 'φ-coder/phcoder' Serbinenko a écrit :
> You can change the "s,x,x" part adding --transform command line option
> to configure. It's useful to change all the pathes used.
>
>> The problem is that slackware and other distributions use a "*.new"
>> renaming pattern when upgrading packages, in order to not overwrite
>> important config files. Then the user has to deal with these .new
>> files, rename, overwrite or toss away.
>>
>> If 'grub-mkconfig' is really doing what I think it does, then it would
>> just overwrite this important file, '/boot/grub/grub.cfg.new'.
>>
>>
> grub.cfg shouldn't be packaged at all. It's autogenerated on the target
> system.
>
>
Thank you very much for the info. I'll stick with the '40_custom' file then.
appzer0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-12 16:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 15:00 About grub.cfg{.new,} generation appzer0
2011-01-12 15:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-12 16:07 ` appzer0
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.