tools: bootconfig: Add bootconfig command
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 10 Jan 2020 16:03:56 +0000 (01:03 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 13 Jan 2020 18:19:39 +0000 (13:19 -0500)
commit950313ebf79c65702f4c15d29328147766d1f1fd
tree859764b9a481c2f383c07ac0f9c2b928fd0c18a5
parent7684b8582c24537dbe079a7d40e1d7e57ca56939
tools: bootconfig: Add bootconfig command

Add "bootconfig" command which operates the bootconfig
config-data on initrd image.

User can add/delete/verify the boot config on initrd
image using this command.

e.g.
Add a boot config to initrd image
 # bootconfig -a myboot.conf /boot/initrd.img

Remove it.
 # bootconfig -d /boot/initrd.img

Or verify (and show) it.
 # bootconfig /boot/initrd.img

Link: http://lkml.kernel.org/r/157867223582.17873.14342161849213219982.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
[ Removed extra blank line at end of bootconfig.c ]
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
12 files changed:
MAINTAINERS
tools/Makefile
tools/bootconfig/.gitignore [new file with mode: 0644]
tools/bootconfig/Makefile [new file with mode: 0644]
tools/bootconfig/include/linux/bootconfig.h [new file with mode: 0644]
tools/bootconfig/include/linux/bug.h [new file with mode: 0644]
tools/bootconfig/include/linux/ctype.h [new file with mode: 0644]
tools/bootconfig/include/linux/errno.h [new file with mode: 0644]
tools/bootconfig/include/linux/kernel.h [new file with mode: 0644]
tools/bootconfig/include/linux/printk.h [new file with mode: 0644]
tools/bootconfig/include/linux/string.h [new file with mode: 0644]
tools/bootconfig/main.c [new file with mode: 0644]