Try something like include addon inside image
Posts by vpeter
-
-
GitHub - vpeter4/LibreELEC.tv at lamp-addon
But because there are package duplicates you need to rename original ones and rebuild. This could be improved but currently I don't care.
-
Do you really think I will study what to do with that? No way!
-
Maybe because filemanager has nfs client build in but in shell you can't do the same without mounting the share?
-
You could write how to reproduce this issue.
-
Do you have your nfs share mounted or not? If not make proper systemd mount script and mount it undr /media/nfs.
-
-
Are addons added using ADDITIONAL_PACKAGES too?
No, this is only for images.
-
You don't get it: everything is already set as it should:
enable Amlogic: LibreELEC.tv/package.mk at master · LibreELEC/LibreELEC.tv · GitHub
SPI device: LibreELEC.tv/package.mk at master · LibreELEC/LibreELEC.tv · GitHub
-
System-tools was just an example. You just need to adjust names to include anything else.
-
As I wrote SPI is always enabled from package.mk: LibreELEC.tv/package.mk at master · LibreELEC/LibreELEC.tv · GitHub
You don't need to do anything. Or am I missing something?
-
Ok, found another 10 minutes: service.web.lamp-9.0.105-generic.x86_64.zip
-
Well, mysqld doesn't compile anymore. And I only had 10 minutes spare time. Will look later.
If you need only sql server there is mariadb addon in le repository.
-
Just to complete this thread I played a little how to include addon in the image. Zip file is saved to image and unpacked to /storage on first boot. Just a quick idea not fully tested and investigated. I'm sure there are better solutions

packages/virtual/misc-packages/system.d/storage-addons-copy.service
Code
Display More[Unit] Description=Kodi storage addons copy script Before=kodi.service After=network-online.target graphical.target [Service] Type=oneshot Environment=HOME=/storage ExecStart=-/bin/sh -c ". /etc/profile; exec /bin/sh /usr/lib/libreelec/storage-addons-copy" RemainAfterExit=yes [Install] WantedBy=kodi.servicepackages/virtual/misc-packages/package.mk
Code
Display More# SPDX-License-Identifier: GPL-2.0-or-later # 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" PKG_SECTION="virtual" PKG_LONGDESC="misc-packages: Metapackage for miscellaneous packages" pre_install() { ADDON_OVERWRITE=yes ./scripts/create_addon system-tools } post_install() { mkdir -p $INSTALL/usr/share/kodi/storage_addons cp $ROOT/target/virtual.system-tools-9.0.111.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 }packages/virtual/misc-packages/scripts/storage-addons-copy
Bash
Display More#!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) # how could we check if addon is enabled in Kodi ? # if disabled don't unpack anymore if [ ! -d /storage/.kodi/addons/virtual.system-tools ]; then unzip -o -qq -d /storage/.kodi/addons \ /usr/share/kodi/storage_addons/virtual.system-tools-9.0.111.zip fi -
Ssh tunneling is not enough for your use case?
-
This is what I did.
Edit file /storage/.kodi/userdata/keymaps/keyboard.xml. If doesn't exist copy it from /usr/share/kodi/system/keymaps/keyboard.xml.
Then replace
with
There is also Keymap Editor addon which could be used.
-
Similar discussion: Add Build 7zip (for .7z files)
Addon is still a package but at the end addon zip file is created.
-
Isn't there ffmpeg in one addon?