|Les De Ridder 8195d0abe0 Make sure busybox is installed||3 years ago|
|.gitignore||3 years ago|
|README.md||3 years ago|
|install.sh||3 years ago|
DigitalOcean deprecated Arch Linux a while back because it was relatively difficult to support due to the rolling updates. I wrote this script to bring it back! This script downloads a bootstrap Arch Linux image, updates it to the latest version, then overwrites the host operating system with it. Unlike Debian 7.x, Debian 8.x on DigitalOcean boots traditionally (through the MBR and Grub), so no dirty kexec magic is needed.
Run the script in the droplet as root:
2.1. The safe way:
wget https://raw.githubusercontent.com/lesderid/digitalocean-debian-to-arch/debian8/install.sh less install.sh # Inspect the file to see if it downloaded correctly and doesn't contain malicious code bash install.sh
2.2. The unsafe, but faster way:
curl -s https://raw.githubusercontent.com/lesderid/digitalocean-debian-to-arch/debian8/install.sh | bash -
Follow the instructions when prompted.
Sit back and relax! The system will automatically reboot once complete, and you should have a fully updated Arch Linux system in within minutes.
This script supports several flags, all of which are optional.
linuxpackage. Other options include
linux-ltsfor long term support and
linux-grsecfor a kernel with grsecurity/PaX patches.
uname -m. A 64-bit Debian image may convert to either
i686. A 32-bit Debian image may only convert to
gpt(GUID partition table as used by EFI). The alternative is
btrfs. The alternative is
pacman -Syuis called inside the image to pull in all the base packages along with OpenSSH.
digitalocean-synchronizeis installed into the image. This script is run at every startup to autodetect the network settings from the metadata service. It also detects if the droplet was just restored, and if so, it resets the root password and regenerates the host SSH keys.
systemctl switch-rootto enter the minimal root filesystem.