Skip to content
This repository was archived by the owner on Aug 3, 2021. It is now read-only.

Commit 8645a59

Browse files
authored
Kernel 5.4 & Update Dependencies (#1)
2 parents 9dd8410 + 868b000 commit 8645a59

7 files changed

Lines changed: 36 additions & 30 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ jobs:
4141
docker build -t boot2docker/boot2docker .
4242
docker run --rm boot2docker/boot2docker > boot2docker.iso
4343
44-
- name: '"ls"'
45-
run: ls -lh boot2docker.iso
46-
47-
- name: '"docker images"'
48-
run: docker images
44+
- uses: actions/upload-artifact@v2
45+
with:
46+
name: boot2docker.iso
47+
path: boot2docker.iso

Dockerfile

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:buster-slim
1+
FROM debian:stable-slim
22

33
SHELL ["/bin/bash", "-Eeuo", "pipefail", "-xc"]
44

@@ -25,6 +25,7 @@ RUN apt-get update; \
2525
wget \
2626
xorriso \
2727
xz-utils \
28+
rsync \
2829
; \
2930
rm -rf /var/lib/apt/lists/*
3031

@@ -38,11 +39,11 @@ WORKDIR /rootfs
3839
# updated via "update.sh"
3940
ENV TCL_MIRRORS http://distro.ibiblio.org/tinycorelinux http://repo.tinycorelinux.net
4041
ENV TCL_MAJOR 11.x
41-
ENV TCL_VERSION 11.0
42+
ENV TCL_VERSION 11.1
4243

4344
# http://distro.ibiblio.org/tinycorelinux/8.x/x86_64/archive/8.2.1/distribution_files/rootfs64.gz.md5.txt
4445
# updated via "update.sh"
45-
ENV TCL_ROOTFS="rootfs64.gz" TCL_ROOTFS_MD5="ea8699a39115289ed00d807eac4c3118"
46+
ENV TCL_ROOTFS="rootfs64.gz" TCL_ROOTFS_MD5="3c5846fd0eb2f4ecc15e424678ef7919"
4647

4748
COPY files/tce-load.patch files/udhcpc.patch /tcl-patches/
4849

@@ -178,7 +179,7 @@ ENV LINUX_GPG_KEYS \
178179
647F28654894E3BD457199BE38DBBDC86092693E
179180

180181
# updated via "update.sh"
181-
ENV LINUX_VERSION 4.19.103
182+
ENV LINUX_VERSION 5.4.80
182183

183184
RUN wget -O /linux.tar.xz "https://cdn.kernel.org/pub/linux/kernel/v${LINUX_VERSION%%.*}.x/linux-${LINUX_VERSION}.tar.xz"; \
184185
wget -O /linux.tar.asc "https://cdn.kernel.org/pub/linux/kernel/v${LINUX_VERSION%%.*}.x/linux-${LINUX_VERSION}.tar.sign"; \
@@ -333,9 +334,9 @@ RUN make -C /usr/src/linux INSTALL_HDR_PATH=/usr/local headers_install
333334

334335
# http://download.virtualbox.org/virtualbox/
335336
# updated via "update.sh"
336-
ENV VBOX_VERSION 5.2.36
337+
ENV VBOX_VERSION 6.1.16
337338
# https://www.virtualbox.org/download/hashes/$VBOX_VERSION/SHA256SUMS
338-
ENV VBOX_SHA256 6124287b7a1790436a9b0b2601154b50c6cd6e680aeff45c61d03ee1158f3eb9
339+
ENV VBOX_SHA256 88db771a5efd7c048228e5c1e0b8fba56542e9d8c1b75f7af5b0c4cf334f0584
339340
# (VBoxGuestAdditions_X.Y.Z.iso SHA256, for verification)
340341

341342
RUN wget -O /vbox.iso "https://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso"; \
@@ -360,17 +361,18 @@ RUN make -C /usr/src/vbox/amd64/src/vboxguest -j "$(nproc)" \
360361

361362
# TCL includes VMware's open-vm-tools 10.2.0.1608+ (no reason to compile that ourselves)
362363
RUN tcl-tce-load open-vm-tools; \
363-
tcl-chroot vmhgfs-fuse --version; \
364-
tcl-chroot vmtoolsd --version
364+
tcl-chroot vmhgfs-fuse --version;
365+
# vmtoolsd needs to run within a vmware hypervisor so we don't print the version
366+
#tcl-chroot vmtoolsd --version
365367

366-
ENV PARALLELS_VERSION 13.3.0-43321
368+
ENV PARALLELS_VERSION 16.1.1-49141
367369

368370
RUN wget -O /parallels.tgz "https://download.parallels.com/desktop/v${PARALLELS_VERSION%%.*}/$PARALLELS_VERSION/ParallelsTools-$PARALLELS_VERSION-boot2docker.tar.gz"; \
369371
mkdir /usr/src/parallels; \
370372
tar --extract --file /parallels.tgz --directory /usr/src/parallels --strip-components 1; \
371373
rm /parallels.tgz
372374
RUN cp -vr /usr/src/parallels/tools/* ./; \
373-
make -C /usr/src/parallels/kmods -f Makefile.kmods -j "$(nproc)" installme \
375+
make -C /usr/src/parallels/kmods -f Makefile.kmods -j "$(nproc)" compile \
374376
SRC='/usr/src/linux' \
375377
KERNEL_DIR='/usr/src/linux' \
376378
KVER="$(< /usr/src/linux/include/config/kernel.release)" \
@@ -381,7 +383,7 @@ RUN cp -vr /usr/src/parallels/tools/* ./; \
381383

382384
# https://github.com/xenserver/xe-guest-utilities/tags
383385
# updated via "update.sh"
384-
ENV XEN_VERSION 7.18.0
386+
ENV XEN_VERSION 7.20.0
385387

386388
RUN wget -O /xen.tgz "https://github.com/xenserver/xe-guest-utilities/archive/v$XEN_VERSION.tar.gz"; \
387389
mkdir /usr/src/xen; \
@@ -412,7 +414,7 @@ RUN wget -O usr/local/sbin/cgroupfs-mount "https://github.com/tianon/cgroupfs-mo
412414
chmod +x usr/local/sbin/cgroupfs-mount; \
413415
tcl-chroot cgroupfs-mount
414416

415-
ENV DOCKER_VERSION 19.03.6
417+
ENV DOCKER_VERSION 19.03.13
416418

417419
# Get the Docker binaries with version that matches our boot2docker version.
418420
RUN DOCKER_CHANNEL='edge'; \

files/init.d/docker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ start() {
218218

219219
# https://github.com/docker/docker-ce-packaging/blob/468d37e0d6d303b785eb9bfc42612397d683c7e5/deb/systemd/docker.service#L15-L19
220220
ulimit -n 1048576 # LimitNOFILE
221-
ulimit -p unlimited # LimitNPROC
221+
ulimit -u unlimited # LimitNPROC
222222
ulimit -c unlimited # LimitCORE
223223

224224
mkdir -p /var/lib/boot2docker/log

files/kernel-config.d/cifs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
CONFIG_CIFS=m
2-
CONFIG_CIFS_ACL=y
2+
# Remove unneeded ifdef for CONFIG_CIFS_ACL (always enabled now)
3+
# https://wiki.samba.org/index.php/LinuxCIFSKernel
4+
#CONFIG_CIFS_ACL=y
35
CONFIG_CIFS_FSCACHE=y
46
CONFIG_CIFS_XATTR=y
57

files/kernel-config.d/docker

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ CONFIG_BRIDGE=m
66
CONFIG_BRIDGE_NETFILTER=m
77
CONFIG_BTRFS_FS=m
88
CONFIG_BTRFS_FS_POSIX_ACL=y
9-
CONFIG_CFQ_GROUP_IOSCHED=y
9+
# No longer around since linux 5.1
10+
#CONFIG_CFQ_GROUP_IOSCHED=y
1011
CONFIG_CFS_BANDWIDTH=y
1112
CONFIG_CGROUPS=y
1213
CONFIG_CGROUP_CPUACCT=y
@@ -30,8 +31,9 @@ CONFIG_EXT4_FS_POSIX_ACL=y
3031
CONFIG_EXT4_FS_SECURITY=y
3132
CONFIG_FAIR_GROUP_SCHED=y
3233
CONFIG_INET_ESP=m
33-
CONFIG_INET_XFRM_MODE_TRANSPORT=m
34-
CONFIG_IOSCHED_CFQ=m
34+
#CONFIG_INET_XFRM_MODE_TRANSPORT=m
35+
# No longer around since linux 5.1
36+
#CONFIG_IOSCHED_CFQ=m
3537
CONFIG_IPC_NS=y
3638
CONFIG_IPVLAN=m
3739
CONFIG_IP_NF_FILTER=m
@@ -44,7 +46,7 @@ CONFIG_IP_VS_PROTO_TCP=y
4446
CONFIG_IP_VS_PROTO_UDP=y
4547
CONFIG_IP_VS_RR=m
4648
CONFIG_KEYS=y
47-
CONFIG_LEGACY_VSYSCALL_EMULATE=y
49+
#CONFIG_LEGACY_VSYSCALL_EMULATE=y
4850
CONFIG_MACVLAN=m
4951
CONFIG_MEMCG=y
5052
CONFIG_MEMCG_SWAP=y
@@ -61,8 +63,8 @@ CONFIG_NF_CONNTRACK_FTP=m
6163
CONFIG_NF_CONNTRACK_TFTP=m
6264
CONFIG_NF_NAT=m
6365
CONFIG_NF_NAT_FTP=m
64-
CONFIG_NF_NAT_IPV4=m
65-
CONFIG_NF_NAT_NEEDED=y
66+
#CONFIG_NF_NAT_IPV4=m
67+
#CONFIG_NF_NAT_NEEDED=y
6668
CONFIG_NF_NAT_TFTP=m
6769
CONFIG_OVERLAY_FS=m
6870
CONFIG_PID_NS=y

files/make-b2d-iso.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ mkdir -p /tmp/stats
4040

4141
echo "- Parallels Tools v$PARALLELS_VERSION" # https://github.com/boot2docker/boot2docker/pull/1332#issuecomment-420273330
4242

43-
ovtVersion="$(tcl-chroot vmtoolsd --version | grep -oE 'version [^ ]+' | cut -d' ' -f2)"
44-
echo "- VMware Tools (\`open-vm-tools\`) [v$ovtVersion](http://distro.ibiblio.org/tinycorelinux/$TCL_MAJOR/x86_64/tcz/open-vm-tools.tcz.info)"
43+
# vmtoolsd needs to run within a vmware hypervisor so we don't print the version
44+
# ovtVersion="$(tcl-chroot vmtoolsd --version | grep -oE 'version [^ ]+' | cut -d' ' -f2)"
45+
# echo "- VMware Tools (\`open-vm-tools\`) [v$ovtVersion](http://distro.ibiblio.org/tinycorelinux/$TCL_MAJOR/x86_64/tcz/open-vm-tools.tcz.info)"
4546

4647
echo "- VirtualBox Guest Additions [v$VBOX_VERSION](https://download.virtualbox.org/virtualbox/$VBOX_VERSION/)"
4748

update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -Eeuo pipefail
33

44
# TODO http://distro.ibiblio.org/tinycorelinux/latest-x86_64
55
major='11.x'
6-
version='11.0' # TODO auto-detect latest
6+
version='11.1' # TODO auto-detect latest
77
# 9.x doesn't seem to use ".../archive/X.Y.Z/..." in the same way as 8.x :(
88

99
mirrors=(
@@ -12,10 +12,10 @@ mirrors=(
1212
)
1313

1414
# https://www.kernel.org/
15-
kernelBase='4.19'
15+
kernelBase='5.4'
1616
# https://github.com/boot2docker/boot2docker/issues/1398
1717
# https://download.virtualbox.org/virtualbox/
18-
vboxBase='5'
18+
vboxBase='6'
1919

2020
# avoid issues with slow Git HTTP interactions (*cough* sourceforge *cough*)
2121
export GIT_HTTP_LOW_SPEED_LIMIT='100'

0 commit comments

Comments
 (0)