Skip to content

Instantly share code, notes, and snippets.

@egeneralov
Created October 4, 2019 17:58
Show Gist options
  • Select an option

  • Save egeneralov/0133abb06dbeb600720e32682c07d996 to your computer and use it in GitHub Desktop.

Select an option

Save egeneralov/0133abb06dbeb600720e32682c07d996 to your computer and use it in GitHub Desktop.
cat << EOF > config
DRIVE1 /dev/nvme0n1
DRIVE2 /dev/nvme1n1
SWRAID 1
SWRAIDLEVEL 0
BOOTLOADER grub
HOSTNAME $(hostname)
PART /boot ext3 512M
PART / ext4 20G
PART /data xfs all
IMAGE /root/.oldroot/nfs/images/Debian-100-buster-64-minimal.tar.gz
EOF
installimage -r yes -a -c /root/config -K /root/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment