install.sh: If current config isn't found in /boot/config-*, try /proc/config.gz
This commit is contained in:
parent
3451dd8d51
commit
734e72186a
@ -194,8 +194,11 @@ if [ "$1" = "install" ] || [ "$1" = "config" ]; then
|
||||
cd "$_where"/linux-${_basekernel}
|
||||
fi
|
||||
|
||||
msg2 "Copying current kernel's config and running make oldconfig..."
|
||||
cp /boot/config-`uname -r` .config
|
||||
if ( msg2 "Trying /boot/config-* ..." && cp /boot/config-`uname -r` .config ) || ( msg2 "Trying /proc/config.gz ..." && zcat --verbose /proc/config.gz > .config ); then
|
||||
msg2 "Copying current kernel's config and running make oldconfig..."
|
||||
else
|
||||
msg2 "Current kernel config not found! Falling back to default..."
|
||||
fi
|
||||
if [ "$_distro" = "Debian" ]; then #Help Debian cert problem.
|
||||
sed -i -e 's#CONFIG_SYSTEM_TRUSTED_KEYS="debian/certs/test-signing-certs.pem"#CONFIG_SYSTEM_TRUSTED_KEYS=""#g' .config
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user