]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bootconfig: Align the bootconfig applied initrd image size to 4
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 19 Nov 2020 05:53:40 +0000 (14:53 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Nov 2020 13:55:44 +0000 (08:55 -0500)
commite3d2f30dbc3ff4ac589d8e85ee5a6d7804df4e15
tree078d33adcf1381603da63c4b6e4c9bbfb4073fee
parent3db73b727af1affce86f1c7ff8fc48888bccbf1e
tools/bootconfig: Align the bootconfig applied initrd image size to 4

Align the bootconfig applied initrd image size to 4. To fill the gap,
the bootconfig command uses null characters in between the bootconfig
data and the footer. This will expands the footer size but don't change
the checksum.
Thus the block image of the initrd file with bootconfig is as follows.

[initrd][bootconfig][(pad)][size][csum]["#BOOTCONFIG\n"]

Link: https://lkml.kernel.org/r/160576522046.320071.8550680670010950634.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/bootconfig.h
tools/bootconfig/main.c
tools/bootconfig/test-bootconfig.sh