Skip to content

Create workflow for building astroarch image on aarch64 astroarch#255

Open
sc74 wants to merge 7 commits into
devDucks:mainfrom
sc74:astroarch_build
Open

Create workflow for building astroarch image on aarch64 astroarch#255
sc74 wants to merge 7 commits into
devDucks:mainfrom
sc74:astroarch_build

Conversation

@sc74
Copy link
Copy Markdown
Contributor

@sc74 sc74 commented May 9, 2026

No description provided.

@MattBlack85
Copy link
Copy Markdown
Collaborator

in the original build script, we set the samba pass explicitly with

systemctl start smb
(echo astro; echo astro) | smbpasswd -s -a astronaut
systemctl stop smb

docker doesn't have systemd but this script ignore that section completely

@MattBlack85
Copy link
Copy Markdown
Collaborator

@sc74 this is the 3rd script file to setup astroarch. That cannot simply be the way.

there should be only one and we MUST deal with any issue in that one (systemd, hotspot, pass and whatnot). We cannot keep forking the build script and then patching the same exact things in different places

@MattBlack85
Copy link
Copy Markdown
Collaborator

most of the services do not seem to be enabled at the end? resize once, create_ap etc?

@sc74
Copy link
Copy Markdown
Contributor Author

sc74 commented May 11, 2026

Yes, I don't think it's necessary to start and stop the service just to set the Samba password (I'll have to check. I haven't had time to test it all out because of work right now)

We remove the systemctl commands from astroarch_build_for_aarch64.sh and simply copy the xx.service files to the correct directories; then systemctl enable --root= works without systemd, creating the correct symlinks directly in the mounted image. Thanks, Claude.ai 😉

The purpose of the build-astroarch directory was to learn how to use chroot with ArchLinux. This directory is no longer needed. The astroarch_build.sh file was a good starting point for building astroarch manually. Now, with the GitHub workflow, this can be automated by simplifying the astroarch_build.sh file (removing the systemctl commands). The timedatectl command has also been replaced by simple ln and echo commands. A single, unified method for building astroarch whenever you push

Ps: As with the build-astroarch directory, this is just an example to help you and can be deleted later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants