summaryrefslogtreecommitdiffstats
path: root/devices/parser-tests/004/expected-output
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-01-07 19:15:03 +1100
committerJeremy Kerr <jk@ozlabs.org>2008-01-07 19:15:03 +1100
commitaab818c10b1fa68b968cabc852680f8ec0fe1360 (patch)
treedd3b7a90d58c2bd167899782a477359317c1fa34 /devices/parser-tests/004/expected-output
parent84a9a8660a90551f2f934ac77ac0c9b2c2e8c079 (diff)
downloadtalos-petitboot-aab818c10b1fa68b968cabc852680f8ec0fe1360.tar.gz
talos-petitboot-aab818c10b1fa68b968cabc852680f8ec0fe1360.zip
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>
Diffstat (limited to 'devices/parser-tests/004/expected-output')
-rw-r--r--devices/parser-tests/004/expected-output9
1 files changed, 9 insertions, 0 deletions
diff --git a/devices/parser-tests/004/expected-output b/devices/parser-tests/004/expected-output
new file mode 100644
index 0000000..76a90a2
--- /dev/null
+++ b/devices/parser-tests/004/expected-output
@@ -0,0 +1,9 @@
+[dev 0] id: /dev/sda1
+[dev 0] name: (null)
+[dev 0] description: (null)
+[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png
+[opt 0] name: test
+[opt 0] description: /dev/sda1:/vmlinux
+[opt 0] boot_image: devices/parser-tests/004/sda1/vmlinux
+[opt 0] initrd: (null)
+[opt 0] boot_args: (null)
OpenPOWER on IntegriCloud