Compare commits

..
5 Commits
Author SHA1 Message Date
Lukas Stancik c202610c67 Upgrade to latest working Alpine Linux version 2025-07-07 19:12:09 +00:00
Lukas Stancik 183978de4e Fix architecture of tailspin for RaspberryPi 2025-07-07 19:11:19 +00:00
Lukas Stancik 5796b47f31 Guard against changes in setup scripts location 2025-07-07 19:10:45 +00:00
Lukas Stancik 8acb73f65a Fix copynig of preshared key files for iwd daemon 2025-07-07 17:48:36 +00:00
Lukas Stancik 19c96a1aaa Cosmetics in Makefile
I can no longer format SD card in Gnome with lowercase name (dont know why) hence the change to uppercase. Silenced error produced by clean target when trying to remove non-existent Docker image
2025-07-07 17:47:57 +00:00
5 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ CACHE_DIR=<%= $(pwd) %>/cache
ALPINE_MIRROR=https://dl-cdn.alpinelinux.org/alpine ALPINE_MIRROR=https://dl-cdn.alpinelinux.org/alpine
ALPINE_ARCH=aarch64 ALPINE_ARCH=aarch64
ALPINE_VER_MAJOR=3 ALPINE_VER_MAJOR=3
ALPINE_VER_MINOR=20 ALPINE_VER_MINOR=21
ALPINE_VER_PATCH=3 ALPINE_VER_PATCH=3
REQUIREMENTS_FILE=required-apks.txt REQUIREMENTS_FILE=required-apks.txt
eth0=eth0 eth0=eth0
+2 -2
View File
@@ -53,7 +53,7 @@ build: repository
card: clean build card: clean build
@echo "### Copying to sdcard..." @echo "### Copying to sdcard..."
@rsync -chavz --delete ${DIST_DIR}/ /media/$(shell whoami)/entropi @rsync -chavz --delete ${DIST_DIR}/ /media/$(shell whoami)/ENTROPI
@echo "### Copying to sdcard done" @echo "### Copying to sdcard done"
-@make clean -@make clean
@@ -62,7 +62,7 @@ clean:
-@rm -rf ${DIST_DIR} -@rm -rf ${DIST_DIR}
-@rm -rf tmp* -@rm -rf tmp*
-@rm -f ${CACHE_DIR}/aport/${RELEASE_VERSION}/main/${ALPINE_ARCH}/APKINDEX.tar.gz -@rm -f ${CACHE_DIR}/aport/${RELEASE_VERSION}/main/${ALPINE_ARCH}/APKINDEX.tar.gz
-@docker rmi ${BUILDER_DOCKER_IMAGE} 1> /dev/null -@docker rmi ${BUILDER_DOCKER_IMAGE} >/dev/null 2>&1
@echo "### Cleaning done" @echo "### Cleaning done"
mrproper: clean mrproper: clean
+4
View File
@@ -36,3 +36,7 @@ AutoConnect=true
``` ```
All the files will be automatically picked up by the wifi daemon after the RaspberryPi finishes boot process All the files will be automatically picked up by the wifi daemon after the RaspberryPi finishes boot process
### Troubleshooting
Alpine 3.22.0 produces a lot of "Clock skew detected" errors during boot and fails to execute the `headless.start` script. Version 3.21.3 works fine.
+1 -1
View File
@@ -22,7 +22,7 @@ alpine_source() {
tailspin_bin() { tailspin_bin() {
find "$CACHE_DIR" -name tailspin.tar.gz -type f | grep -q . || \ find "$CACHE_DIR" -name tailspin.tar.gz -type f | grep -q . || \
wget https://github.com/bensadeh/tailspin/releases/download/4.0.0/tailspin-x86_64-unknown-linux-musl.tar.gz -O "$CACHE_DIR/tailspin.tar.gz" wget https://github.com/bensadeh/tailspin/releases/download/4.0.0/tailspin-aarch64-unknown-linux-musl.tar.gz -O "$CACHE_DIR/tailspin.tar.gz"
mkdir -p "$CACHE_DIR/tailspin" mkdir -p "$CACHE_DIR/tailspin"
+6 -5
View File
@@ -162,8 +162,10 @@ __setup_wireless_client() {
mkdir -p /var/lib/iwd/ap/ mkdir -p /var/lib/iwd/ap/
copyfile root:root 0644 ${SDCARD_MEDIA}/main.conf /etc/iwd/main.conf copyfile root:root 0644 ${SDCARD_MEDIA}/main.conf /etc/iwd/main.conf
copyfile root:root 0644 ${SDCARD_MEDIA}/NUMERI_AC11.psk /var/lib/iwd/NUMERI_AC11.psk
copyfile root:root 0644 ${SDCARD_MEDIA}/robusta_nomap.psk /var/lib/iwd/robusta_nomap.psk for file in $(find ${SDCARD_MEDIA} -type f -name *.psk -exec basename {} \;); do
copyfile root:root 0644 ${SDCARD_MEDIA}/${file} /var/lib/iwd/${file}
done
copyfile root:root 0644 ${SDCARD_MEDIA}/hotspot.conf /var/lib/iwd/ap/<%= $ssid %>.ap copyfile root:root 0644 ${SDCARD_MEDIA}/hotspot.conf /var/lib/iwd/ap/<%= $ssid %>.ap
copyfile root:root 0700 ${SDCARD_MEDIA}/watchdog.sh /etc/wireguard/watchdog.sh copyfile root:root 0700 ${SDCARD_MEDIA}/watchdog.sh /etc/wireguard/watchdog.sh
@@ -173,8 +175,8 @@ __setup_wireless_client() {
rc-service iwd start rc-service iwd start
} }
/sbin/setup-hostname <%= $hostname %> setup-hostname <%= $hostname %>
/sbin/setup-timezone -z <%= $ROUTER_TIMEZONE %> setup-timezone -z <%= $ROUTER_TIMEZONE %>
__setup_local_repositories __setup_local_repositories
@@ -198,7 +200,6 @@ mkdir -p /etc/wireguard
copyfile root:root 0600 ${SDCARD_MEDIA}/wg0.conf /etc/wireguard/wg0.conf copyfile root:root 0600 ${SDCARD_MEDIA}/wg0.conf /etc/wireguard/wg0.conf
ln -s /etc/init.d/wg-quick /etc/init.d/wg-quick.wg0 ln -s /etc/init.d/wg-quick /etc/init.d/wg-quick.wg0
# rc-service wg-quick.wg0 start
__setup_time __setup_time