Skip to content

Commit

Permalink
try a different way
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Dec 24, 2024
1 parent cba75bf commit 7d47b2b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
commands: |
chmod +x ${{matrix.script}}
${{ matrix.script }}
./install_common.sh
echo "${{ github.ref_name }};${{ matrix.name }}" > /opt/photonvision/image-version
- name: Compress built image
Expand Down
7 changes: 2 additions & 5 deletions install_common.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/bin/bash

# Run standard photon installer
chmod +x ./install.sh
./install.sh --install-nm=yes --arch=aarch64
#!/bin/bash -v

# Do additional tasks that are common across all images,
# but not suitable for inclusion in install.sh
echo "Running install_common.sh"

# Limit the maximum length of systemd-journald logs
cat > /etc/systemd/journald.conf.d/60-limit-log-size.conf <<EOF
Expand Down
4 changes: 2 additions & 2 deletions install_limelight.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Run normal photon installer
chmod +x ./install_common.sh
./install_common.sh
chmod +x ./install.sh
./install.sh --install-nm=yes --arch=aarch64

# edit boot partition
install -m 644 limelight/config.txt /boot/
Expand Down
4 changes: 2 additions & 2 deletions install_opi5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ freed=$(( before - after ))
echo "Freed up $freed KiB"

# run Photonvision install script
chmod +x ./install_common.sh
./install_common.sh
chmod +x ./install.sh
./install.sh --install-nm=yes --arch=aarch64

echo "Installing additional things"
apt-get install --yes --quiet libc6 libstdc++6
Expand Down
4 changes: 2 additions & 2 deletions install_pi.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Run normal photon installer
chmod +x ./install_common.sh
./install_common.sh
chmod +x ./install.sh
./install.sh --install-nm=yes --arch=aarch64

# and edit boot partition
install -m 644 config.txt /boot/
Expand Down

0 comments on commit 7d47b2b

Please sign in to comment.