diff --git a/README.md b/README.md index 05e58c593..bedcb0b83 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Here a list of included and preinstalled Software: - Preinstalled Dependencies for Klipper's Input Shaper. \ You only need to build the [klipper_mcu](https://www.klipper3d.org/RPi_microcontroller.html) and installing the service. \ See [Klipper documentation](https://www.klipper3d.org/Measuring_Resonances.html) for more information. +- Preinstalled python3-serial package, needed for [CanBoot](https://github.com/Arksine/CanBoot) ## Screenshots diff --git a/src/modules/mainsailos/config b/src/modules/mainsailos/config index bc47fd421..04091d5bb 100644 --- a/src/modules/mainsailos/config +++ b/src/modules/mainsailos/config @@ -1,2 +1,4 @@ -# This file is intentionally left blank -# Preparation for later use cases +#!/bin/bash +# shellcheck disable=all + +[ -n "$MAINSAILOS_DEPS" ] || MAINSAILOS_DEPS="python3-serial" diff --git a/src/modules/mainsailos/start_chroot_script b/src/modules/mainsailos/start_chroot_script index 274ac5931..0acaef549 100644 --- a/src/modules/mainsailos/start_chroot_script +++ b/src/modules/mainsailos/start_chroot_script @@ -21,3 +21,8 @@ function get_parent { cat /etc/os-release | grep VERSION_CODENAME | cut -d '=' -f2 } echo "${DIST_NAME} release ${DIST_VERSION} ($(get_parent))" > /etc/${DIST_NAME,,}-release + +### Install CANBoot Dependency +apt update +# shellcheck disable=SC2086 +check_install_pkgs ${MAINSAILOS_DEPS}