Skip to content

Commit

Permalink
update variables
Browse files Browse the repository at this point in the history
  • Loading branch information
valerius committed Jan 16, 2024
1 parent 0aaca58 commit 34c5e2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/rpi-aarch64-image-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,22 @@ jobs:
run: |
sudo bsdtar -xpf $WORKDIR_BASE/ArchLinuxARM-rpi-${{ env.ARM_VERSION }}-latest.tar.gz -C $WORKDIR_BASE/root
sudo sync
- name: Check if systemd-binfmt is started
run: |
sudo systemctl start systemd-binfmt
- name: Make the new root folder a mount point
run: |
sudo mount --bind $WORKDIR_BASE/root $WORKDIR_BASE/root
sudo mount --bind $WORKDIR_BASE/root/boot $WORKDIR_BASE/root/boot
- name: Run Build Script
run: |
sudo chmod +x ./build-archlinux-rpi-aarch64-img.sh
sudo ./build-archlinux-rpi-aarch64-img.sh
# - name: Upload Image and Get URL
# if: success()
# run: |
Expand Down
22 changes: 1 addition & 21 deletions build-archlinux-rpi-aarch64-img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,9 @@ IF9fLyAKX19fXy8gXF9ffCBffCAgIFxfXyxffCBcX198IFxfX198IFxfXywgfCBffCBcX19ffCAg
IF9fX3wgXF9fXy8gIF98ICBffCBcX19ffCAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIHxfX18vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAK" | base64 -d

# Restart teh service systemd-binfmt.service
echo "Restarting systemd-binfmt.service..."
systemctl restart systemd-binfmt.service

# Check if the disk exists
echo "Checking if the disk $LOOP_DEVICE exists..."
if [ ! -b "$LOOP_DEVICE" ]; then
echo "The disk $LOOP_DEVICE does not exist. Exiting."
exit 1
fi

echo "YES! ls -l $LOOP_DEVICE"
echo $WORKDIR_BASE
exit 0

# If the checksum is correct, proceed with extraction
echo "Extracting root filesystem..."
bsdtar -xpf "$WORKDIR_BASE/ArchLinuxARM-rpi-${ARM_VERSION}-latest.tar.gz" -C $WORKDIR_BASE/root
sync

# Make the new root folder a mount point
echo "Making the new root folder a mount point..."
mount --bind $WORKDIR_BASE/root $WORKDIR_BASE/root

echo "Setting locale and keymap..."
# Add locales to /etc/locale.gen within the chroot environment
arch-chroot $WORKDIR_BASE/root sed -i -e '/^#en_US.UTF-8 UTF-8/s/^#//' \
Expand Down

0 comments on commit 34c5e2f

Please sign in to comment.