diff options
author | Brett Grandbois <brett.grandbois@opengear.com> | 2018-06-11 07:54:08 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-06-12 14:43:36 +1000 |
commit | 0e9f4d38b19c2d7557528ef5b11b93377525cd55 (patch) | |
tree | a8448d4ceae557716297c0073c774fe5a67948e9 /test/parser/test-syslinux-explicit.c | |
parent | 18a47a31b46d916c58a31e8784a7c3a3abcae446 (diff) | |
download | talos-petitboot-0e9f4d38b19c2d7557528ef5b11b93377525cd55.tar.gz talos-petitboot-0e9f4d38b19c2d7557528ef5b11b93377525cd55.zip |
discover/syslinux-parser: consistent cmdline arg processing
In signed-boot environments consistent handling of kernel commandline
options is essential as they must be pre-signed. In the syslinux parser
ensure that in the absence of a global APPEND they are processed
exactly as found and not with the leading space that the current APPEND
processing has as a shortcut.
Signed-off-by: Brett Grandbois <brett.grandbois@opengear.com>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'test/parser/test-syslinux-explicit.c')
-rw-r--r-- | test/parser/test-syslinux-explicit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parser/test-syslinux-explicit.c b/test/parser/test-syslinux-explicit.c index 5d23f50..82030bf 100644 --- a/test/parser/test-syslinux-explicit.c +++ b/test/parser/test-syslinux-explicit.c @@ -36,6 +36,6 @@ void run_test(struct parser_test *test) check_name(opt, "backup"); check_resolved_local_resource(opt->boot_image, ctx->device, "/backup/vmlinuz"); - check_args(opt, " root=/dev/sdb"); + check_args(opt, "root=/dev/sdb"); check_resolved_local_resource(opt->initrd, ctx->device, "/boot/initrd"); } |