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
.
The following command will install ikconfig
executable in ~/.cargo/bin
directory:
cargo install --path .
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
This project is licensed under GPL-3.0 or MIT license.