diff --git a/tools/kernel-factory/.gitignore b/tools/kernel-factory/.gitignore deleted file mode 100644 index 53752db..0000000 --- a/tools/kernel-factory/.gitignore +++ /dev/null @@ -1 +0,0 @@ -output diff --git a/tools/kernel-factory/Ubuntu/14.04/Dockerfile b/tools/kernel-factory/Ubuntu/14.04/Dockerfile deleted file mode 100644 index 7529e73..0000000 --- a/tools/kernel-factory/Ubuntu/14.04/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM ubuntu:14.04 - -RUN apt-get update - -# for linux-image-3*-generic, so... CRUTCHES! -# E: Unable to locate package linux-image-3*-generic -ENV DEBIAN_FRONTEND=noninteractive -RUN apt search linux-image | grep -e linux-image-3 -e linux-image-4 | grep generic | cut -d '/' -f 1 | xargs apt install -y -RUN apt search linux-headers | grep -e linux-headers-3 -e linux-headers-4 | grep generic | cut -d '/' -f 1 | xargs apt install -y diff --git a/tools/kernel-factory/Ubuntu/14.04/Image b/tools/kernel-factory/Ubuntu/14.04/Image deleted file mode 120000 index e9296dc..0000000 --- a/tools/kernel-factory/Ubuntu/14.04/Image +++ /dev/null @@ -1 +0,0 @@ -../../../qemu-debian-img/ubuntu1404.img \ No newline at end of file diff --git a/tools/kernel-factory/Ubuntu/16.04/Dockerfile b/tools/kernel-factory/Ubuntu/16.04/Dockerfile deleted file mode 100644 index 60bce34..0000000 --- a/tools/kernel-factory/Ubuntu/16.04/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM ubuntu:16.04 - -RUN apt-get update -RUN DEBIAN_FRONTEND=noninteractive apt-get install -y linux-image-4*-generic linux-headers-*-generic build-essential wget git diff --git a/tools/kernel-factory/Ubuntu/16.04/Image b/tools/kernel-factory/Ubuntu/16.04/Image deleted file mode 120000 index bd76306..0000000 --- a/tools/kernel-factory/Ubuntu/16.04/Image +++ /dev/null @@ -1 +0,0 @@ -../../../qemu-debian-img/ubuntu1604.img \ No newline at end of file diff --git a/tools/kernel-factory/Ubuntu/18.04/Dockerfile b/tools/kernel-factory/Ubuntu/18.04/Dockerfile deleted file mode 100644 index b340e13..0000000 --- a/tools/kernel-factory/Ubuntu/18.04/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM ubuntu:18.04 - -RUN apt-get update -RUN DEBIAN_FRONTEND=noninteractive apt-get install -y linux-image-4*-generic linux-headers-*-generic build-essential wget git libelf-dev diff --git a/tools/kernel-factory/Ubuntu/18.04/Image b/tools/kernel-factory/Ubuntu/18.04/Image deleted file mode 120000 index 9b13ebe..0000000 --- a/tools/kernel-factory/Ubuntu/18.04/Image +++ /dev/null @@ -1 +0,0 @@ -../../../qemu-debian-img/ubuntu1804.img \ No newline at end of file diff --git a/tools/kernel-factory/bootstrap.sh b/tools/kernel-factory/bootstrap.sh deleted file mode 100755 index b0ccbe6..0000000 --- a/tools/kernel-factory/bootstrap.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -eux -mkdir -p output -echo > output/kernels.toml -find | grep Docker | sed 's/Dockerfile//' | while read DOCKER; do - CONTAINER_NAME=$(echo $DOCKER | sed -e 's;/;;g' -e 's;\.;;g' -e 's;\(.*\);\L\1;') - docker build -t ${CONTAINER_NAME} ${DOCKER} - docker run ${CONTAINER_NAME} bash -c 'ls /boot' - CONTAINER_ID=$(docker ps -a | grep ${CONTAINER_NAME} | awk '{print $1}' | head -n 1) - docker cp ${CONTAINER_ID}:/boot/. output/ - DISTRO_NAME=$(echo $DOCKER | cut -d '/' -f 2) - DISTRO_VER=$(echo $DOCKER | cut -d '/' -f 3) - - BOOT_FILES="$(docker run $CONTAINER_NAME ls /boot)" - for KERNEL_RELEASE in $(docker run $CONTAINER_NAME ls /lib/modules); do - echo '[[Kernels]]' >> output/kernels.toml - echo 'distro_type =' \"$DISTRO_NAME\" >> output/kernels.toml - echo 'distro_release =' \"$DISTRO_VER\" >> output/kernels.toml - echo 'kernel_release =' \"$KERNEL_RELEASE\" >> output/kernels.toml - echo 'container_name =' \"$CONTAINER_NAME\" >> output/kernels.toml - KERNEL_PATH=$(echo $BOOT_FILES | sed 's/ /\n/g' | grep $KERNEL_RELEASE | grep vmlinuz) - echo 'kernel_path =' \"$(realpath output/$KERNEL_PATH)\" >> output/kernels.toml - INITRD_PATH=$(echo $BOOT_FILES | sed 's/ /\n/g' | grep $KERNEL_RELEASE | grep init) - echo 'initrd_path =' \"$(realpath output/$INITRD_PATH)\" >> output/kernels.toml - ROOTFS_PATH=$(realpath $DOCKER/Image) - echo 'root_f_s =' \"$ROOTFS_PATH\" >> output/kernels.toml - echo >> output/kernels.toml - done -done -rm -rf output/grub