Skip to content

Commit 84ff895

Browse files
committed
Add a Raspbian specific systemd unit file, use overlay by default
Signed-off-by: Dieter Reuter <[email protected]>
1 parent 6e76b7a commit 84ff895

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

hack/install.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,10 @@ do_install() {
389389
}
390390

391391
if [ "$lsb_dist" = "raspbian" ]; then
392-
# overlay is preferred to use on Raspbian
393-
if [ ! -f /etc/modules-load.d/docker.conf ]; then
394-
# Load kernel module 'overlay' at boot time
395-
( set -x; $sh_c "modprobe overlay" )
396-
( set -x; $sh_c "echo overlay > /etc/modules-load.d/docker.conf" )
397-
fi
392+
# Create Raspbian specific systemd init file, use overlay by default
393+
( set -x; $sh_c "mkdir -p /etc/systemd/system" )
394+
( set -x; $sh_c "$curl https://raw.githubusercontent.com/docker/docker/master/contrib/init/systemd/docker.service > /etc/systemd/system/docker.service" )
395+
( set -x; $sh_c "sed -i 's/dockerd/dockerd --storage-driver overlay/' /etc/systemd/system/docker.service" )
398396
else
399397
# aufs is preferred over devicemapper; try to ensure the driver is available.
400398
if ! grep -q aufs /proc/filesystems && ! $sh_c 'modprobe aufs'; then

0 commit comments

Comments
 (0)