Page MenuHomeSoftware Heritage

Do a clean install of Debian on tytso
Closed, MigratedEdits Locked

Event Timeline

olasd changed the task status from Open to Work in Progress.Apr 5 2018, 12:02 PM
olasd triaged this task as Normal priority.
olasd created this task.

tytso has now been rebooted on the new debian install.

Challenge: no out-of-band access.

steps to reproduce:

  • make a new partition on one of the directly attached lvm volumes
  • mount it to /target
  • debootstrap stretch /target http://deb.debian.org/debian
  • mount /dev, /sys, /proc, /dev/pts under /target
  • copy /etc/resolv.conf to /target
  • chroot /target /bin/bash

under the chroot

  • apt-get update
  • apt-get install apt-transport-https vim
  • switch /etc/apt/sources.list to https; add contrib and non-free; add security and debian-updates
  • apt-get dist-upgrade
  • apt-get install linux-image-amd64 grub-pc aptitude lvm2 ssh acpi console-setup htop molly-guard firmware-bnx2 intel-microcode
  • add the new root to /etc/fstab (use blkid to get its UUID)
  • add ssh keys to /root/.ssh/authorized_keys
  • adjust /etc/network/interfaces
  • adjust /etc/udev.d to retrieve the old interface names (avoid the unpredictable predictable interface names)
  • make sure grub is installed properly to all the disks

back outside the chroot

  • umount all mounted partitions
  • triple check network configuration
  • reboot and cross fingers

I've also diffed the (sorted) output of dpkg --get-selections to check for obvious missing packages that would prevent the new install from booting.