From 7a1918d230f8eab7cbbaea48afd3174f0cbbc77a Mon Sep 17 00:00:00 2001 From: Timo Reichl Date: Sat, 14 Oct 2023 18:11:24 +0200 Subject: [PATCH] docker: Parameterize loading the loop kernel module Signed-off-by: Timo Reichl --- srcpkgs/moby/files/docker/run | 5 ++++- srcpkgs/moby/template | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/moby/files/docker/run b/srcpkgs/moby/files/docker/run index 959c22b803c587..386830059f7700 100644 --- a/srcpkgs/moby/files/docker/run +++ b/srcpkgs/moby/files/docker/run @@ -1,7 +1,10 @@ #!/bin/sh exec 2>&1 [ -r conf ] && . ./conf -modprobe -q loop || exit 1 +case "${LOAD_LOOP_MODULE:-yes}" in + no) ;; + *) modprobe -q loop || exit 1 ;; +esac mountpoint -q /sys/fs/cgroup/systemd || { mkdir -p /sys/fs/cgroup/systemd; mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd; diff --git a/srcpkgs/moby/template b/srcpkgs/moby/template index fe551feae995aa..7e5ea532ebf854 100644 --- a/srcpkgs/moby/template +++ b/srcpkgs/moby/template @@ -2,7 +2,7 @@ # should be kept in sync with docker-cli pkgname=moby version=27.3.1 -revision=1 +revision=2 # libnetwork commit is mentioned in vendor.conf _libnetwork_commit=05b93e0d3a95952f70c113b0bc5bdb538d7afdd7 create_wrksrc=yes