diff options
author | Neelesh Gupta <neelegup@linux.vnet.ibm.com> | 2013-08-29 19:21:32 +0530 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-08-30 11:29:09 +1000 |
commit | 503d1454f222e2b0c6f8dd433a9e91870a17f460 (patch) | |
tree | fdfb76e3e30157e40390072f2f92e3f4aa86ec94 /test/parser/test-kboot-single.c | |
parent | 50a98e73d4eed46e859368915a7800cc904b44f2 (diff) | |
download | talos-petitboot-503d1454f222e2b0c6f8dd433a9e91870a17f460.tar.gz talos-petitboot-503d1454f222e2b0c6f8dd433a9e91870a17f460.zip |
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 <neelegup@linux.vnet.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/test-kboot-single.c')
0 files changed, 0 insertions, 0 deletions