Skip to content

Instantly share code, notes, and snippets.

@displague
Last active March 20, 2016 17:37
Show Gist options
  • Save displague/fdd3bcff6b6df92ac2ec to your computer and use it in GitHub Desktop.
Save displague/fdd3bcff6b6df92ac2ec to your computer and use it in GitHub Desktop.
thoughts on fetching / installing box image for linode in a single blind boot
api create - single disk - minimal% (debian)
boot
lish # (maybe ssh?)
mkdir -p /newroot/oldroot
apt-get install -y debootstrap
debootstrap jessie /newroot http://mirrors.linode.com/debian
pivot_root / switch_root / systemctl switch-root /newroot
umount oldroot/{dev/{pts,shm,},proc,sys,} oldroot
...
loss of console? loss of root password?
...
wget / curl url | dd if=- of=/dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment