Continous rebuild fixed.

This commit is contained in:
Kolan Sh 2013-04-03 19:46:57 +04:00
parent 8ca753a24f
commit b4b036109b
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,8 @@ kernel-clean.sh
vmlinuz_file=/boot/`echo $new_kernel | sed 's~^linux~vmlinuz~'`
[ "" == "$vmlinuz_file" ] && echo "vmlinuz_file == \"\"" && exit -1
genkernel_file=/boot/`echo $new_kernel | sed 's~^linux~kernel-genkernel~'`
march=`uname -m`
genkernel_file=/boot/`echo $new_kernel | sed "s~^linux~kernel-genkernel-${march}~"`
[ "" == "$genkernel_file" ] && echo "genkernel_file == \"\"" && exit -1
if [[ ! -f "$vmlinuz_file" && ! -f "$genkernel_file" || 1 -eq $FORCE_REBUILD ]]; then

View File

@ -100,8 +100,7 @@ fi
[ -f /boot/grub/grub.conf ] && \
sed -i "s~\/boot\/vmlinuz-[0-9][^ ]*~\/boot\/vmlinuz-$REVISION~g;
s~\/boot\/kernel-genkernel-x86_64-[0-9][^]*~\/boot\/kernel-genkernel-x86_64-$REVISION~g;
s~\/boot\/kernel-genkernel-x86-[0-9][^]*~\/boot\/kernel-genkernel-x86-$REVISION~g;
s~\/boot\/kernel-genkernel-`uname -m`-[0-9][^]*~\/boot\/kernel-genkernel-`uname -m`-$REVISION~g;
s~\/boot\/initramfs-[0-9][^ ]*~\/boot\/initramfs-$REVISION.img~g" \
/boot/grub/grub.conf