Extend /boot/vmlinuz* acceptable names.
This commit is contained in:
parent
6930eff7d2
commit
41023df98f
|
@ -61,11 +61,13 @@ kernel-clean.sh
|
||||||
vmlinuz_file=/boot/`echo $new_kernel | sed 's~^linux~vmlinuz~'`
|
vmlinuz_file=/boot/`echo $new_kernel | sed 's~^linux~vmlinuz~'`
|
||||||
[ "" == "$vmlinuz_file" ] && echo "vmlinuz_file == \"\"" && exit -1
|
[ "" == "$vmlinuz_file" ] && echo "vmlinuz_file == \"\"" && exit -1
|
||||||
|
|
||||||
|
vmlinuz_file_x86_64=/boot/`echo $new_kernel | sed 's~^linux~vmlinuz~'`-x86_64
|
||||||
|
[ "" == "$vmlinuz_file_x86_64" ] && echo "vmlinuz_file_x86_64 == \"\"" && exit -1
|
||||||
|
|
||||||
march=`uname -m`
|
march=`uname -m`
|
||||||
genkernel_file=/boot/`echo $new_kernel | sed "s~^linux~kernel-genkernel-${march}~"`
|
genkernel_file=/boot/`echo $new_kernel | sed "s~^linux~kernel-genkernel-${march}~"`
|
||||||
[ "" == "$genkernel_file" ] && echo "genkernel_file == \"\"" && exit -1
|
[ "" == "$genkernel_file" ] && echo "genkernel_file == \"\"" && exit -1
|
||||||
|
if [[ ! -f "$vmlinuz_file" && ! -f "$vmlinuz_file_x86_64" && ! -f "$genkernel_file" || 1 -eq $FORCE_REBUILD ]]; then
|
||||||
if [[ ! -f "$vmlinuz_file" && ! -f "$genkernel_file" || 1 -eq $FORCE_REBUILD ]]; then
|
|
||||||
kernel-rebuild.sh $KERNEL_REBUILD_ARGS
|
kernel-rebuild.sh $KERNEL_REBUILD_ARGS
|
||||||
[ 0 -ne $? ] && echo "kernel-rebuild.sh $KERNEL_REBUILD_ARGS failed" && exit -1
|
[ 0 -ne $? ] && echo "kernel-rebuild.sh $KERNEL_REBUILD_ARGS failed" && exit -1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue