Multibooting

Paul Howarth paul at city-fan.org
Thu Nov 25 18:17:03 UTC 2004


Satish Balay wrote:
> On Thu, 25 Nov 2004, Satish Balay wrote:
>>On Thu, 25 Nov 2004, Paul Howarth wrote:
>>
>>
>>>So, when a new kernel is to be added, how does grubby know whether to add an
>>>entry with "root=LABEL=/" or "root=LABEL=/1"?
>>
>>Hmm - you got me there.. I have't tried this out myself. Someone else
>>mentioned this scheme to me.
> 
> 
> Looks like grubby is called from /sbin/new-kernel-pkg - when a new
> kernel is installed.  It has:
> 
> *************
>     rootdevice=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/fstab)
> 
>         /sbin/grubby --add-kernel=$bootPrefix/$kernelName-$version $INITRD    \
>                      --copy-default $makedefault --title "$title"           \
>                      --args="root=$rootdevice $kernargs"            \
>                      --remove-kernel="TITLE=$title"
> 
> *************
> 
> So it grabs the 'root' partition from /etc/fstab - and uses it. So the
> correct root-label is always used when kernel gets updated. (i.e no
> problem with this scheme :) )

As Obi-wan Kenobi would have said, "Use the source, Luke" ;-)

This looks quite a nice, neat solution, but who's going to try it out...?

Paul.




More information about the fedora-list mailing list