testing: Do not overwrite kernel configuration if it already exists
authorMartin Willi <martin@revosec.ch>
Fri, 29 May 2015 20:29:59 +0000 (22:29 +0200)
committerMartin Willi <martin@revosec.ch>
Sun, 12 Jul 2015 11:54:08 +0000 (13:54 +0200)
This allows us to do changes to the kernel configuration using menuconfig
and friends, and update the kernel with make-testing.

testing/scripts/build-guestkernel

index f7f3cce..0c38b7b 100755 (executable)
@@ -43,7 +43,10 @@ then
        fi
 fi
 
-execute "cp $KERNELCONFIG .config" 0
+if [ ! -f .config ]
+then
+       execute "cp $KERNELCONFIG .config" 0
+fi
 
 echo "Creating kernel configuration, you might get prompted for new parameters"
 make oldconfig 2>&1 | tee -a $LOGFILE