fail on changed init section

fixes issue #103

Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
Seth Jennings 2014-04-08 12:45:49 -05:00
parent 6626db1ad8
commit 7b15e23149

View File

@ -505,8 +505,11 @@ void kpatch_compare_correlated_section(struct section *sec)
else
kpatch_compare_correlated_nonrela_section(sec);
out:
if (sec->status == CHANGED)
if (sec->status == CHANGED) {
log_debug("section %s has changed\n", sec->name);
if (!strcmp(sec->name, ".init.text"))
DIFF_FATAL("init section has changed");
}
}
void kpatch_compare_sections(struct table *table)