Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 8e746566 authored by aumgn's avatar aumgn
Browse files

Clean up scripts

parent 86b17572
#! /bin/bash
CORES=$(nproc)
KERNEL_FLAVOR=${1:-tptracepoint}
KERNEL_STAMP=${2:-$(python -c 'import uuid; print(str(uuid.uuid1())[0:8])')}
cd $BENCH_PATH/src/linux
KERNEL_STAMP=${2:-$(date +"%s.%N")}
make-kpkg \
--rootcmd fakeroot \
......
#! /bin/bash
KERNEL_FLAVOR=${1:-tptracepoint}
KERNEL_STAMP=${2:-$(python -c 'import uuid; print(str(uuid.uuid1())[0:8])')}
KERNEL_STAMP=${2:-$(date +"%s.%N")}
pushd ~/linux
pushd $LINUX_SRC
git reset --hard c7dd25cc70176e2
git pull
cpl $KERNEL_FLAVOR $KERNEL_STAMP
popd
sudo dpkg -i $BENCH_PATH/src/linux-image-4.9.9-$KERNEL_FLAVOR-$KERNEL_STAMP+_2_amd64.deb
sudo dpkg -i $LINUX_SRC/../linux-image-4.9.9-$KERNEL_FLAVOR-$KERNEL_STAMP+_2_amd64.deb
vm 4.9.9-$KERNEL_FLAVOR-$KERNEL_STAMP+
......@@ -20,5 +20,5 @@ sudo qemu-system-x86_64 \
-kernel "/boot/vmlinuz-$KERNEL_VERSION" \
-initrd "/boot/initrd.img-$KERNEL_VERSION" \
-append "root=/dev/sda1 rw net.ifnames=0 intel_pstate=disable numa_balancing=disable"
ssh vm
CORES=$(shell nproc)
KERNEL_VERSION=4.9.9
KERNEL_STAMP:=$(shell python -c 'import uuid; print(str(uuid.uuid1())[0:8])')
KERNEL_STAMP:=$(shell date +"%s.%N")
EXECUTABLES = tar curl make fakeroot make-kpkg
K := $(foreach exec,$(EXECUTABLES),\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment