Provision Arch: Difference between revisions

From Pumping Station One
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
mkfs.ext4 /dev/vda1 -F
mkfs.ext4 /dev/vda1 -F
mount /dev/vda1 /mnt
mount /dev/vda1 /mnt
pacstrap /mnt base base-devel openssh syslinux
pacstrap /mnt base base-devel openssh syslinux salt-zmq
genfstab -p /mnt >> /mnt/etc/fstab
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
arch-chroot /mnt
Line 15: Line 15:
systemctl enable dhcpcd
systemctl enable dhcpcd
systemctl enable sshd
systemctl enable sshd
cp -r /usr/lib/syslinux/bios/*.c32 /boot/syslinux/
systemctl enable salt-minion
ln -s /usr/lib/syslinux/bios/*.c32 /boot/syslinux/
extlinux --install /boot/syslinux
extlinux --install /boot/syslinux
dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/vda
dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/vda
sed -i 's#/dev/sda3#/dev/vda1#' /boot/syslinux/syslinux.cfg
sed -i 's#/dev/sda3#/dev/vda1#' /boot/syslinux/syslinux.cfg
echo [archlinuxfr] >> /etc/pacman.conf
echo SigLevel = Never >> /etc/pacman.conf
echo Server = http://repo.archlinux.fr/\$arch >> /etc/pacman.conf
pacman -Sy
pacman -S --noconfirm salt
systemctl enable salt-minion
</syntaxhighlight>
</syntaxhighlight>