random

- collection of un-sorted bollocks
git clone git://git.acid.vegas/random.git
Log | Files | Refs | Archive

arm (456B)

      1 #!/bin/sh
      2 # required: dosfstools
      3 set -xev
      4 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
      5 mkdir boot root
      6 mkfs.vfat /dev/sda1 && mount /dev/sda1 boot
      7 mkfs.ext4 /dev/sda2 && mount /dev/sda2 root
      8 wget -O archlinuxarm.tar.gz http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz
      9 bsdtar -xpf archlinuxarm.tar.gz -C root && sync
     10 mv root/boot/* boot
     11 umount boot root && rm -r archlinuxarm.tar.gz boot root