32 lines
1.3 KiB
Docker
32 lines
1.3 KiB
Docker
# building a modified Kernel + modules
|
|
FROM lpenz/debian-etch-i386-minbase
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ARG ARCH=i386
|
|
ARG CONCURRENCY_LEVEL=4
|
|
|
|
# Preparing Environment
|
|
RUN (echo "deb http://archive.debian.org/debian etch main contrib non-free" > /etc/apt/sources.list) && \
|
|
(echo "deb-src http://archive.debian.org/debian etch main contrib non-free" >> /etc/apt/sources.list) && \
|
|
mkdir -p /usr/src/modules &&\
|
|
apt-get update && \
|
|
apt-get install -y aptitude build-essential quilt cvs unzip git-core ncurses-dev\
|
|
linux-headers-2.6.24-etchnhalf.1-686 \
|
|
squashfs-source-etchnhalf \
|
|
linux-source-2.6.24 && \
|
|
apt-get build-dep -y linux-image-2.6.24-etchnhalf.1-686 && \
|
|
apt-get clean
|
|
|
|
# Preparing Kernel + patchs + modules
|
|
WORKDIR /usr/src
|
|
COPY unionfs-2.2.3_for_2.6.24.diff.gz ./
|
|
RUN tar xjf linux-source-2.6.24.tar.bz2 && \
|
|
tar xjf etchnhalf/squashfs.tar.bz2 && \
|
|
ln -s linux-headers-2.6.24-etchnhalf.1-686/ linux-headers
|
|
|
|
# Building Kernel + patchs + modules
|
|
WORKDIR /usr/src/linux-source-2.6.24
|
|
COPY config-kernel ./
|
|
RUN (zcat /usr/src/unionfs-2.2.3_for_2.6.24.diff.gz | patch -p1) && \
|
|
(cat config-kernel > .config) && \
|
|
make oldconfig &&\
|
|
make-kpkg --initrd --arch $ARCH kernel_headers kernel_image modules_image |