mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-01-20 06:25:28 +00:00
1f6cdc8589
Fix the following error: dockerd[2525]: Flag --graph has been deprecated, Use --data-root instead dockerd[2525]: the "graph" config file option is deprecated; use "data-root" instead systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE Fix the following warning: [graphdriver] trying configured driver: overlay2 DEPRECATED: the overlay2.override_kernel_check option is ignored and will be removed in the next release. You can safely remove this option from your configuration.
29 lines
902 B
Bash
Executable File
29 lines
902 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Lukas Rusak (lrusak@libreelec.tv)
|
|
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
ADDON_DIR="/storage/.kodi/addons/service.system.docker"
|
|
ADDON_HOME_DIR="/storage/.kodi/userdata/addon_data/service.system.docker"
|
|
|
|
if [ ! -d "$ADDON_HOME_DIR/config" ]; then
|
|
mkdir -p $ADDON_HOME_DIR/config
|
|
fi
|
|
|
|
if [ ! -f "$ADDON_HOME_DIR/config/docker.conf" ]; then
|
|
cp $ADDON_DIR/config/docker.conf $ADDON_HOME_DIR/config/docker.conf
|
|
else
|
|
# previous deprecated options before v23.0.0 need to be updated
|
|
sed -i -e 's/--storage-opt overlay2.override_kernel_check=1//' \
|
|
-e 's/--graph=/--data-root=/' $ADDON_HOME_DIR/config/docker.conf
|
|
fi
|
|
|
|
if [ ! -d "$ADDON_HOME_DIR/docker" ]; then
|
|
mkdir -p $ADDON_HOME_DIR/docker
|
|
fi
|
|
|
|
if [ ! -d /var/lib/docker ]; then
|
|
ln -sf $ADDON_HOME_DIR/docker /var/lib/docker
|
|
fi
|