mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-02-02 23:07:19 +08:00
Look for old configs in /boot folder as well
This commit is contained in:
parent
429760c91f
commit
20dca2981d
@ -143,7 +143,7 @@ patchKernelVersion "$MAIN_VER" "$MINOR_VER" "$PATCH_VER" "$MD5_SUM" "$DIR_BOOK/p
|
|||||||
KERNEL_CONFIG="$HOME/config-$LATEST_KERNEL_VER"
|
KERNEL_CONFIG="$HOME/config-$LATEST_KERNEL_VER"
|
||||||
if [ ! -f "$KERNEL_CONFIG" ] ; then
|
if [ ! -f "$KERNEL_CONFIG" ] ; then
|
||||||
# Look for older config files in the user's home directory
|
# Look for older config files in the user's home directory
|
||||||
CONFIG_FILE=$(find "$HOME" -type f -iwholename "$HOME/config-*")
|
CONFIG_FILE=$(find /boot "$HOME" -type f -iwholename "$HOME/config-*" -o iwholename "/boot/config-*")
|
||||||
if [ -z "$CONFIG_FILE" ] ; then
|
if [ -z "$CONFIG_FILE" ] ; then
|
||||||
echo "Cannot find $KERNEL_CONFIG and also no old configs found to create it."
|
echo "Cannot find $KERNEL_CONFIG and also no old configs found to create it."
|
||||||
exit 4
|
exit 4
|
||||||
@ -262,4 +262,4 @@ if [ -n "$GRUB_SCRIPT" ] ; then
|
|||||||
fi
|
fi
|
||||||
sed -i "/set root=/d;/^ .*linux /c\ linux \${knl_name} root=\${lnx_root} ro \${opts}" "$GRUB_SCRIPT"
|
sed -i "/set root=/d;/^ .*linux /c\ linux \${knl_name} root=\${lnx_root} ro \${opts}" "$GRUB_SCRIPT"
|
||||||
sed -i '/set timeout/a set color_normal=white/black\nset color_highlight=yellow/black\nset menu_color_normal=light-blue/black\nset menu_color_highlight=yellow/blue' "$GRUB_SCRIPT"
|
sed -i '/set timeout/a set color_normal=white/black\nset color_highlight=yellow/black\nset menu_color_normal=light-blue/black\nset menu_color_highlight=yellow/blue' "$GRUB_SCRIPT"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user