Libreelec fails to start because the addon (in my case service.lcdd) is enabled but not installed.
So probably this means that storage-addons-copy.service script is not triggered or doesn't exist.
Yes, probably missing addon is the reason.
Seems pre_install() or any other function can't create addon anymore and that's the main issue. You need to build addon manually before making image like
PROJECT=... ./scripts/create_addon system-tools
PROJECT=... make image
You can check if all the files are available with
ls -l build.LibreELEC*/image/system/usr/share/kodi/storage_addons
ls -l build.LibreELEC*/image/system/usr/lib/systemd/system/storage-addons-copy.service
ls -l build.LibreELEC*/image/system/usr/lib/libreelec/storage-addons-copy
packages/virtual/misc-packages/package.mk
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="misc-packages"
PKG_VERSION=""
PKG_LICENSE="GPL"
PKG_SITE="https://libreelec.tv"
PKG_URL=""
PKG_DEPENDS_TARGET="toolchain $ADDITIONAL_PACKAGES kodi"
PKG_SECTION="virtual"
PKG_LONGDESC="misc-packages: Metapackage for miscellaneous packages"
# manually create addon first
# ./scripts/create_addon system-tools
post_install() {
mkdir -p $INSTALL/usr/share/kodi/storage_addons
cp $ROOT/target/addons/*/$PROJECT/$ARCH/*/virtual.system-tools-*.zip $INSTALL/usr/share/kodi/storage_addons
mkdir -p $INSTALL/usr/lib/libreelec
cp -PR $PKG_DIR/scripts/* $INSTALL/usr/lib/libreelec
enable_service storage-addons-copy.service
# update addon manifest / enable addon in Kodi
ADDON_MANIFEST=$INSTALL/usr/share/kodi/system/addon-manifest.xml
xmlstarlet ed -L --subnode "/addons" -t elem -n "addon" -v "virtual.system-tools" $ADDON_MANIFEST
}
Display More