diff --git a/zipl/include/job.h b/zipl/include/job.h index d0daeb5a..7e0eb2ff 100644 --- a/zipl/include/job.h +++ b/zipl/include/job.h @@ -128,6 +128,7 @@ struct job_data { int dry_run; int command_line; int is_secure; + int is_ldipl_dump; }; diff --git a/zipl/man/zipl.8.in b/zipl/man/zipl.8.in index 0fa75375..1e85e3fb 100644 --- a/zipl/man/zipl.8.in +++ b/zipl/man/zipl.8.in @@ -281,6 +281,10 @@ or configuration section on the command line at the same time. .BR "\-D" " or " "\-\-dumptofs" This option has been removed, use --dumpto instead. +.TP +.BR "\-\-ldipl-dump" +Install a List-directed dump record instead of a CCW-type dump. + .TP .BR "\-M " " or " "--mvdump=" Install a multi-volume dump record on each device associated with one of the diff --git a/zipl/src/job.c b/zipl/src/job.c index c97644cc..41e674b7 100644 --- a/zipl/src/job.c +++ b/zipl/src/job.c @@ -63,6 +63,7 @@ static struct option options[] = { { "dry-run", no_argument, NULL, '0'}, { "force", no_argument, NULL, 'f'}, { "kdump", required_argument, NULL, 'k'}, + { "ldipl-dump", no_argument, NULL, 0xb0}, { "secure", required_argument, NULL, 'S'}, { NULL, 0, NULL, 0 } }; @@ -93,6 +94,7 @@ struct command_line { int dry_run; int force; int is_secure; + int is_ldipl_dump; enum scan_section_type type; }; @@ -284,6 +286,9 @@ get_command_line(int argc, char* argv[], struct command_line* line) case 'f': cmdline.force = 1; break; + case 0xb0: + cmdline.is_ldipl_dump = 1; + break; case 1: /* Non-option is interpreted as section name */ if (cmdline.section != NULL) { @@ -1978,6 +1983,7 @@ job_get(int argc, char* argv[], struct job_data** data) job->data.mvdump.force = cmdline.force; job->dry_run = cmdline.dry_run; job->is_secure = SECURE_BOOT_UNDEFINED; + job->is_ldipl_dump = cmdline.is_ldipl_dump; if (job->verbose) printf("Looking for components in '%s'\n", util_libdir()); diff --git a/zipl/src/zipl.c b/zipl/src/zipl.c index 3404851d..eeed9a8e 100644 --- a/zipl/src/zipl.c +++ b/zipl/src/zipl.c @@ -72,6 +72,7 @@ static const char* usage_text[] = { " stand-alone dump tool", "-d, --dumpto DUMPDEV[,SIZE] Install a system dump record on tape device", " or disk partition DUMPDEV", +" --ldipl-dump Install a List-directed dump", "-M, --mvdump DEVLIST[,SIZE] Install a multi-volume dump record on each", " disk partition listed in file DEVLIST", "-f, --force Disable sanity check while producing a",