mirror of
git://git.acid.vegas/random.git
synced 2024-11-14 20:16:40 +00:00
12 lines
456 B
Bash
Executable File
12 lines
456 B
Bash
Executable File
#!/bin/sh
|
|
# required: dosfstools
|
|
set -xev
|
|
echo -e "o\nn\np\n1\n\n+100M\nt\nc\nn\np\n2\n\n\nw\n" | fdisk -w always -W always /dev/sda
|
|
mkdir boot root
|
|
mkfs.vfat /dev/sda1 && mount /dev/sda1 boot
|
|
mkfs.ext4 /dev/sda2 && mount /dev/sda2 root
|
|
wget -O archlinuxarm.tar.gz http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz
|
|
bsdtar -xpf archlinuxarm.tar.gz -C root && sync
|
|
mv root/boot/* boot
|
|
umount boot root && rm -r archlinuxarm.tar.gz boot root
|