Skip to content

Hiding CI install script store kernel config in boot #5185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions resources/hiding_ci/build_and_install_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ apply_patch_or_series() {
esac
}

check_new_config() {
if [[ -e "/boot/config-$KERNEL_VERSION" ]]; then
return 0;
fi

echo "Storing new config in /boot/config-$KERNEL_VERSION"
cp .config /boot/config-$KERNEL_VERSION
}

check_override_presence() {
while IFS= read -r line; do
if ! grep -Fq "$line" .config; then
Expand Down Expand Up @@ -209,6 +218,8 @@ make INSTALL_MOD_STRIP=1 install

update_boot_config

check_new_config

echo "Kernel built and installed successfully!"

tidy_up