Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script for configuring SD card with Arch Linux ARM #42

Merged
merged 5 commits into from Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions install/arch_linux_arm.sh
@@ -0,0 +1,37 @@
SDX=$1

(
echo o
echo p
echo n
echo p
echo 1
echo ""
echo +200M
echo t
echo c
echo n
echo p
echo 2
echo ""
echo ""
echo w
) | sudo fdisk $SDX

mkfs.vfat "/dev/${SDX}1"
rmdir boot
mkdir boot
mount "/dev/${SDX}1" boot

mkfs.ext4 "/dev/${SDX}2"
rmdir boot
mkdir root
mount "/dev/${SDX}2" root

wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz
bsdtar -xpf ArchLinuxARM-rpi-armv7-latest.tar.gz -C root
sync

mv root/boot/* boot

umount boot root