deploy native patch using the firstboot setup script

This commit is contained in:
deflax 2024-11-14 00:26:19 +02:00 committed by Daniel Krastev
parent 1bc6856438
commit ad926a2821
2 changed files with 7 additions and 4 deletions

View file

@ -27,8 +27,9 @@ mkdir /tmp/rpi-img/home/pi/.ssh
chown 1000:1000 /tmp/rpi-img/home/pi/.ssh
chown 1000:1000 /tmp/rpi-img/home/pi/.ssh/authorized_keys
#provision scripts
#provision files
cp -v ./src/setup.sh /tmp/rpi-img/root/setup.sh
cp -v ./patch/native.vcv /tmp/rpi-img/root/native.vcv
#enable systemd-time-wait-sync
ln -v -s /lib/systemd/system/systemd-time-wait-sync.service /tmp/rpi-img/etc/systemd/system/sysinit.target.wants/systemd-time-wait-sync.service
@ -48,9 +49,6 @@ tar -xzvf /tmp/rpi-img/opt/Cardinal/Cardinal-linux-aarch64.tar.gz -C /tmp/rpi-im
# setup GUI payload
ln -v -s /lib/systemd/system/payload.service /tmp/rpi-img/etc/systemd/system/graphical.target.wants
# deploy native patch
cp -v ./patch/native.vcv /tmp/rpi-img/home/pi/Documents/templates/native.vcv
echo "] press enter to write the image"
read

View file

@ -15,6 +15,11 @@ apt-get install ufw -y
ufw allow ssh
ufw enable
# deploy native patch
mkdir -vp /home/pi/Documents/templates/
cp -v /root/native.vcv /home/pi/Documents/templates/native.vcv
chown -R pi:pi /home/pi/Documents/templates/
# cleanup
mv /root/setup.sh /root/setup.sh.done
chmod -x /root/setup.sh.done