mirror of
git://git.acid.vegas/random.git
synced 2024-12-04 21:46:40 +00:00
12 lines
456 B
Plaintext
12 lines
456 B
Plaintext
|
#!/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
|