From: Neelesh Gupta Date: Thu, 29 Aug 2013 13:51:32 +0000 (+0530) Subject: discover/yaboot-parser: Handle 'partition=' directive override X-Git-Tag: v1.0.0~504 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=503d1454f222e2b0c6f8dd433a9e91870a17f460;hp=503d1454f222e2b0c6f8dd433a9e91870a17f460 discover/yaboot-parser: Handle 'partition=' directive override In a yaboot conf file, we may see a device= directive that actually specifies a partition (eg, sda1) rather than the underlying block device (sda). If we then encounter a partition= directive, we don't handle the resolution of the partition correctly, as we simply append the partition number to the device= string. This change implements a smarter handling of the partition= directive, where we strip away any partition information from the device= parameter first. Signed-off-by: Neelesh Gupta Signed-off-by: Jeremy Kerr ---