How to prevent changing UUIDs on install?
Goh Lip
g.lip at gmx.com
Tue Dec 29 17:13:43 UTC 2009
On 30/12/09 00:24, Goh Lip wrote:
> On 29/12/09 23:16, Tom H wrote:
>>>> For grub2, you could put in 'update-grub2' and it would do the same as
>>>> 'grub-mkconfig -o /boot/grun/grub.cfg'
>>>> It does the same thing, only you type far less characters!
>>
>>> Yes, Eric, but it's preferable to do grub-mkconfig.
>>> update-grub2 does more than just creating a new .cfg file which is
>>> unnecessary and is created for the benefit for those getting use to
>>> grub2 where update-grub is a common useful command.
>>
>> ?!
>>
>> # cat /usr/sbin/update-grub
>> #!/bin/sh -e
>> exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
>>
>> # cat /usr/sbin/update-grub2
>> #!/bin/sh -e
>> exec update-grub "$@"
>>
>> update-grub and update-grub2 just run grub-mkconfig. update-grub used
>> to be used for grub1 so it seems to have been kept for continuity (as
>> well as brevity).
>>
>
>
> Thanks for the update. I stand corrected.
>
Further to add...though tried this (cat /usr/sbin/update-grub) in hardy
where I had it converted to grub2, (but left the menu.lst there)
the results are as follows.. (in the pastebin)..
http://paste.ubuntu.com/348645/
So I guess this (update-grub) shouldn't be used where karmic was
upgraded from jaunty where grub-legacy was installed. I also think it is
a recent addition as I remembered trying this out (without success) with
grub2...not sure when though.
But thanks for bring this up.
Happy new year,
Goh Lip
More information about the ubuntu-users
mailing list