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

Commit b17028f

Browse files
authored
Merge pull request #1401 from tianon/vbox-5
Pin VBoxGuestAdditions to 5.x (revert VBoxControl changes)
2 parents feaa9e8 + 230977e commit b17028f

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ RUN ( cd /usr/src/haveged && ./configure LDFLAGS='-static --static' ); \
355355

356356
# http://download.virtualbox.org/virtualbox/
357357
# updated via "update.sh"
358-
ENV VBOX_VERSION 6.0.10
358+
ENV VBOX_VERSION 5.2.32
359359
# https://www.virtualbox.org/download/hashes/$VBOX_VERSION/SHA256SUMS
360-
ENV VBOX_SHA256 c8a686f8c7ad9ca8375961ab19815cec6b1f0d2496900a356a38ce86fe8a1325
360+
ENV VBOX_SHA256 4311c7408a3410e6a33264a9062347d9eec04f58339a49f0a60488c0cabc8996
361361
# (VBoxGuestAdditions_X.Y.Z.iso SHA256, for verification)
362362

363363
RUN wget -O /vbox.iso "https://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso"; \

files/init.d/vbox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ start() {
4444
return 0
4545
}
4646

47-
shares="$(VBoxControl --nologo sharedfolder list --automount | tail -n+3 | cut -d ' ' -f 3)"
47+
shares="$(VBoxControl --nologo sharedfolder list -automount | tail -n+3 | cut -d ' ' -f 3)"
4848
for line in $shares; do
4949
try_mount_share "$line"
5050
done

update.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ mirrors=(
2222

2323
# https://www.kernel.org/
2424
kernelBase='4.14'
25+
# https://github.com/boot2docker/boot2docker/issues/1398
26+
# https://download.virtualbox.org/virtualbox/
27+
vboxBase='5'
2528

2629
# avoid issues with slow Git HTTP interactions (*cough* sourceforge *cough*)
2730
export GIT_HTTP_LOW_SPEED_LIMIT='100'
@@ -100,7 +103,14 @@ seds+=(
100103
-e 's!^(ENV LINUX_VERSION).*!\1 '"$kernelVersion"'!'
101104
)
102105

103-
vboxVersion="$(wget -qO- 'https://download.virtualbox.org/virtualbox/LATEST-STABLE.TXT')"
106+
#vboxVersion="$(wget -qO- 'https://download.virtualbox.org/virtualbox/LATEST-STABLE.TXT')"
107+
vboxVersion="$(
108+
wget -qO- 'https://download.virtualbox.org/virtualbox/' \
109+
| grep -oE 'href="[0-9.]+/?"' \
110+
| cut -d'"' -f2 | cut -d/ -f1 \
111+
| grep -E "^$vboxBase[.]" \
112+
| tail -1
113+
)"
104114
vboxSha256="$(
105115
{
106116
wget -qO- "https://download.virtualbox.org/virtualbox/$vboxVersion/SHA256SUMS" \

0 commit comments

Comments
 (0)