ikconfig

This is a Rust re-implementation of extract-ikconfig from Linux kernel, to extract the .config file from a kernel image.

This will only work when the kernel was compiled with CONFIG_IKCONFIG.

Install

This crate has been published onto crates.io, so you can use the following command to install ikconfig executable in ~/.cargo/bin directory:

cargo install ikconfig

Usage

ikconfig /boot/vmlinuz-linux

The extracted config file will be printed on standard output as the original shell script does. Please use output redirection to save as a file if needed:

ikconfig /boot/vmlinuz-linux > .config

Tests

Because crates.io has a upload size limit of 10 MiB, the test cases and data are moved to tests branch.

License

This project is licensed under GPL-3.0 or MIT license.