loader: actually change the staging slop

Reviewed by: imp, kib
Pull Request: https://github.com/freebsd/freebsd-src/pull/1381
This commit is contained in:
Ahmad Khalifa 2024-08-12 12:57:38 +03:00 committed by Warner Losh
parent f144058b40
commit c105113752

View File

@ -268,7 +268,9 @@ command_staging_slop(int argc, char *argv[])
res = CMD_ERROR; res = CMD_ERROR;
} }
if (res == CMD_OK && staging_slop != new) { if (res == CMD_OK && staging_slop != new) {
staging_slop = new;
printf("changed slop, unloading kernel\n"); printf("changed slop, unloading kernel\n");
unload(); unload();
efi_copy_free(); efi_copy_free();
efi_copy_init(); efi_copy_init();