]> git.ozlabs.org Git - petitboot/commit - devices/kboot-parser.c
Rework device-path handling
authorJeremy Kerr <jk@ozlabs.org>
Mon, 7 Jan 2008 08:15:03 +0000 (19:15 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 7 Jan 2008 08:15:03 +0000 (19:15 +1100)
commitaab818c10b1fa68b968cabc852680f8ec0fe1360
treedd3b7a90d58c2bd167899782a477359317c1fa34
parent84a9a8660a90551f2f934ac77ac0c9b2c2e8c079
Rework device-path handling

Pass full device paths around, rather than shortened device names and
mountpoints.

The parse() function has been updated to only take a device path; the
mountpoint can be derived with mountpoint_for_device. Also, add
initial handling for uuid= and label= syntaxes.

This allows us to remap ps3 devices where necessary.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
15 files changed:
devices/kboot-parser.c
devices/native-parser.c
devices/parser-test.sh
devices/parser-tests/001/expected-output
devices/parser-tests/002/expected-output
devices/parser-tests/003/expected-output [new file with mode: 0644]
devices/parser-tests/003/ps3da1/etc/kboot.conf [new file with mode: 0644]
devices/parser-tests/004/expected-output [new file with mode: 0644]
devices/parser-tests/004/rootdev [new file with mode: 0644]
devices/parser-tests/004/sda1/etc/kboot.conf [new file with mode: 0644]
devices/parser.c
devices/parser.h
devices/paths.c
devices/paths.h
devices/yaboot-parser.c