kconfig.1m (2010 09)

k
kconfig(1M) kconfig(1M)
If any additional kernel configuration data become available in future HP-UX releases,
changes to them will be included as well. The return value of
kconfig will be 1 if there
are any such changes; see the RETURN VALUE section below. Not valid in combination
with any other flags.
-e [config] filename
kconfig will export the saved kernel configuration named config to a system file named
filename , replacing the file if it already exists. If no config is specified, the currently run-
ning kernel configuration will be exported, including any changes to it that are being
held for next boot. The exported file can be later imported using
kconfig -i on this
system or any other system with compatible HP-UX software. See kconfig(5) and sys-
tem(4) for more information about system files.
-f Tells kconfig to proceed with the requested operation despite its potentially dangerous
nature. When kconfig is asked to make a change that could result in unintended data
loss, it will ask for confirmation if being run interactively, or print an error message and
stop otherwise. The change can be made, and the interactive confirmation bypassed, by
running the kconfig command with the -f
option.
-h Tells kconfig
to hold the requested changes until the next boot, even if they could be
applied immediately.
-H Discards all changes being held pending for next boot. The currently running
configuration will be used at next boot.
-i [config] filename
kconfig will import a kernel configuration from the system file named filename , which
may have been created by an invocation of
kconfig -e (on any system). If config is
specified, the resulting kernel configuration will be saved under that name. Otherwise,
the resulting kernel configuration will be applied to the currently running system,
overwriting any changes that were being held for next boot. The new configuration
changes will be held until next boot if they cannot be applied immediately, or if the
-h
option is specified.
When duplicate entries for particular tunable or module are found in the system file, only
the last entry found is used.
A kernel configuration cannot be imported successfully unless the running system has all
of the necessary kernel software installed. If the importing system is missing kernel
software components that were in use on the exporting system, the import will fail. See
the
-V option below.
-k {ON|OFF} Enables and disables saving of system files as
thisboot_system and
prevboot_system.
thisboot_system is a copy of system file from which the machine boots. When the
feature is switched ON for the first time, thisboot_system
is a copy of the system file
at that point.
prevboot_system is the copy of the system file from which the machine
was booted last time. These files are created in /stand. -k ON will save the current
system file as thisboot_system and will keep updating it on every reboot. It will also
create a file prevboot_system which contains nothing on first invocation.
-k OFF will remove these files from the machine and will disable this feature.
-l config kconfig will load the saved kernel configuration named config, overwriting any
changes that were being held for next boot. The state of the currently running system
will be changed to match the saved configuration. If the changes cannot be applied
without a reboot, they will be marked to take effect at next boot.
-n config The saved kernel configuration named config will be marked for use at next boot. Any
changes to the currently running configuration that are being held for next boot are dis-
carded.
-P fields Tells kconfig to include only the specified fields in its output, and to print them in the
machine-readable form described in kconfig(5). See the Developers Note below. Not
valid in combination with -v.
-r old new The saved kernel configuration named old will be renamed new. The name new must not
already be in use.
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010