This commit is contained in:
2026-03-18 01:43:57 +01:00
parent 160132a24c
commit b8c7ac06b2
2 changed files with 22 additions and 13 deletions

View File

@@ -2,32 +2,27 @@
FROM lpenz/debian-etch-i386-minbase AS kernel-builder
ARG DEBIAN_FRONTEND=noninteractive
ARG ARCH=i386
ARG CONCURRENCY_LEVEL=4
RUN (echo "deb-src http://archive.debian.org/debian etch main" >> /etc/apt/sources.list) && \
apt-get update && \
apt-get install -y aptitude build-essential cvs unzip git-core ncurses-dev\
linux-headers-2.6.24-etchnhalf.1-686 \
linux-source-2.6.24 && \
apt-get build-dep -y linux-image-2.6.24-etchnhalf.1-686
apt-get build-dep -y linux-image-2.6.24-etchnhalf.1-686 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src
COPY unionfs-2.2.3_for_2.6.24.diff.gz ./
#RUN aptitude download linux-image-2.6.24-etchnhalf.1-686 && \
# dpkg-deb --extract linux-image-2.6.24-etchnhalf.1-686*.deb ./kernel && \
# cp kernel/boot/config-2.6.24-etchnhalf.1-686 linux-source-2.6.24/.config && \
COPY unionfs-2.2.3_for_2.6.24.diff.gz ./
RUN tar xjf linux-source-2.6.24.tar.bz2 && \
ln -s linux-headers-2.6.24-etchnhalf.1-686/ linux-headers
# git clone git clone git://git.fsl.cs.sunysb.edu/unionfs-2.6.24.y.git
# wget http://sourceforge.net/code-snapshots/cvs/a/au/aufs.zip && \
# unzip aufs.zip -d aufs-cvs && \
# cvs -d /usr/src/aufs-cvs/aufs export -D "2008-12-23 00:00:00 UTC" aufs && \
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 &&\
CONCURRENCY_LEVEL=4 make-kpkg --initrd --arch i386 kernel_headers kernel_image
make-kpkg --initrd --arch i386 kernel_headers kernel_image
# Note: we need to use Lenny because of live-helper
@@ -36,5 +31,7 @@ FROM lpenz/debian-lenny-i386-minbase
WORKDIR /root
COPY --from=kernel-builder /usr/src/linux-image*.deb .
RUN apt-get update && \
apt-get -y --force-yes install live-helper genisoimage syslinux squashfs-tools aptitude
apt-get -y --force-yes install live-helper genisoimage syslinux squashfs-tools aptitude && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /root/live