scripts/build-kernel: copy the kernel config (back) to /root after building
This commit is contained in:
parent
7a54cf9e1c
commit
caba362013
|
@ -104,6 +104,10 @@ def uninstall_kernel_package():
|
||||||
subprocess.check_call(EMERGE + USEPKG + ['--depclean', '--with-bdeps=n'])
|
subprocess.check_call(EMERGE + USEPKG + ['--depclean', '--with-bdeps=n'])
|
||||||
|
|
||||||
|
|
||||||
|
def backup_kernel_config():
|
||||||
|
shutil.copy('/usr/src/linux/.config', '/root/kernel.config')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
latest_kernel = get_latest_available_kernel()
|
latest_kernel = get_latest_available_kernel()
|
||||||
current_kernel = get_current_kernel()
|
current_kernel = get_current_kernel()
|
||||||
|
@ -116,6 +120,7 @@ def main():
|
||||||
build_kernel()
|
build_kernel()
|
||||||
remove_old_kernels()
|
remove_old_kernels()
|
||||||
install_kernel()
|
install_kernel()
|
||||||
|
backup_kernel_config()
|
||||||
|
|
||||||
uninstall_kernel_package()
|
uninstall_kernel_package()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue