Skip to content

Commit

Permalink
Update for Debian Bookworm.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrfry committed Jun 25, 2023
1 parent 08758fe commit e34b866
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM debian:bullseye AS debian-vm-build-base
FROM debian:bookworm AS debian-vm-build-base
WORKDIR /root
RUN apt-get update && apt-get upgrade -y

FROM debian-vm-build-base AS debian-vm-build-kernel
WORKDIR /root
RUN apt-get install -y build-essential linux-source kmod cpio initramfs-tools fakeroot libssl-dev lsb-release openssl libelf-dev rsync
RUN apt-get install -y build-essential linux-source kmod cpio initramfs-tools fakeroot libssl-dev lsb-release openssl libelf-dev rsync python3
COPY build-kernel.sh ./
CMD ./build-kernel.sh

FROM debian-vm-build-base AS debian-vm-build-rootfs
WORKDIR /root
RUN apt-get install -y debootstrap parted uuid udev
RUN debootstrap bullseye rootfs https://deb.debian.org/debian/
RUN debootstrap bookworm rootfs https://deb.debian.org/debian/
COPY partition-image.sh build-rootfs.sh ./
CMD ./build-rootfs.sh
3 changes: 3 additions & 0 deletions docker/build-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ cd linux-source-*
xz -d < $VM_CONFIG_PATH > .config
scripts/config \
-d CONFIG_DEBUG_INFO \
-d CONFIG_DEBUG_INFO_BTF \
-d CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT \
-e CONFIG_DEBUG_INFO_NONE \
-e CONFIG_VIRTIO \
-e CONFIG_VIRTIO_PCI \
-e CONFIG_VIRTIO_CONSOLE \
Expand Down
6 changes: 3 additions & 3 deletions docker/build-rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ echo "$VM_DEFAULT_HOSTNAME" > "$VM_ROOTFS_DIR/etc/hostname"

# Add apt sources
cat > "$VM_ROOTFS_DIR/etc/apt/sources.list" <<EOF
deb http://deb.debian.org/debian bullseye main
deb http://deb.debian.org/debian-security/ bullseye-security main
deb http://deb.debian.org/debian bullseye-updates main
deb http://deb.debian.org/debian bookworm main
deb http://deb.debian.org/debian-security/ bookworm-security main
deb http://deb.debian.org/debian bookworm-updates main
EOF

# Set up networking
Expand Down

0 comments on commit e34b866

Please sign in to comment.