-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prairiedog: treat value-less key differently than "empty" values
Before this change, prairedog did no special handling for value-less bootconfig keys and would just write out 'key ='. The kernel is insensitive to whitespace so it would grab the next k/v from the bootconfig and substitute it for the value. With this change, prairiedog now differentiates between value-less keys and keys with empty values (e.g. 'key = ""') both in parsing an existing bootconfig file as well as when it generates the bootconfig initrd from existing settings. When the key is value-less, prariedog will just write out the key without '=' for its line entry in the bootconfig (e.g. just 'key').
- Loading branch information
Showing
4 changed files
with
31 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+12 Bytes
(100%)
sources/api/prairiedog/tests/data/initrd_from_good_bootconfig
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters