[CentOS] detecting boot order

William L. Maltby CentOS4Bill at triad.rr.com
Fri Aug 29 20:10:00 UTC 2008


On Fri, 2008-08-29 at 15:33 -0400, Mark Belanger wrote:
> <snip>

> So far, the best thing I've seen is sfdisk -l which will show me
> bootable partitions.  In a pinch, I could mount all the bootably parts
> and scriptify the altering of grub.conf

Keep in mind that partitions don't always have to be flagged as bootable
(I don't recall ATM the conditions under which this is true). As long as
you know that all are so flagged, that will answer one part of your
need.

Part two can be answered if that boot partition always gets mounted (I
use read-only mount by default). But that only tells which was booted,
not which will be/is being booted.

> 
> -Mark
> 

-- 
Bill



More information about the CentOS mailing list