Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Improve support for armbian based images #52

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
src/config.local
src/custompios_path
src/image/*.zip
src/image-variants/*.zip
src/image
src/image-*
!src/image/README
**/key.json
src/nightly_build_scripts/index.html
src/nightly_build_scripts/node_modules
Expand Down
2 changes: 1 addition & 1 deletion src/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export DIST_NAME=FluiddPI
export DIST_VERSION=0.4.0
export BASE_IMAGE_ENLARGEROOT=2500
export BASE_IMAGE_RESIZEROOT=500
export MODULES="base,releaseinfochange(network,raspicam,klipper,moonraker,fluidd,mjpgstreamer,password-for-sudo)"
export MODULES="base,pkgupgrade(network,raspicam,klipper,moonraker,fluidd,mjpgstreamer,password-for-sudo)"
4 changes: 4 additions & 0 deletions src/modules/moonraker/end_chroot_script
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -ex

rm -rf /etc/sudoers.d/pi-moonraker-install
5 changes: 5 additions & 0 deletions src/modules/moonraker/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ install_cleanup_trap
unpack /filesystem/home/pi /home/pi pi
unpack /filesystem/root /

if [ -f /etc/armbian-release ]; then
echo "pi ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/pi-moonraker-install
chmod 0440 /etc/sudoers.d/pi-moonraker-install
fi

echo "Installing Moonraker"

apt update
Expand Down
9 changes: 0 additions & 9 deletions src/modules/releaseinfochange/start_chroot_script

This file was deleted.