From ad926a2821ea07b7d1e21b5c54fee212d6f3ddd9 Mon Sep 17 00:00:00 2001 From: deflax Date: Thu, 14 Nov 2024 00:26:19 +0200 Subject: [PATCH] deploy native patch using the firstboot setup script --- prepare-image.sh | 6 ++---- src/setup.sh | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/prepare-image.sh b/prepare-image.sh index 71db26e..23bdaab 100755 --- a/prepare-image.sh +++ b/prepare-image.sh @@ -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 diff --git a/src/setup.sh b/src/setup.sh index 84a86bf..bc9c199 100755 --- a/src/setup.sh +++ b/src/setup.sh @@ -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