Skip to content

Instantly share code, notes, and snippets.

@mortehu
Last active August 29, 2015 14:20
Show Gist options
  • Save mortehu/484cdb9320f41f34c6bb to your computer and use it in GitHub Desktop.
Save mortehu/484cdb9320f41f34c6bb to your computer and use it in GitHub Desktop.
Checklist for resilient reboot of Debian and Ubuntu servers

/etc/default/rcS

DELAYLOGIN=no
FSCKFIX=yes

/etc/fstab

Add the nofail option to as many mount points as possible. This will allow the boot process to continue even if a file system is corrupted.

Dropbear

Dropbear is an SSH server that runs before /sbin/init, stored in the /boot/initrd.img... file loaded by GRUB.

apt-get install dropbear busybox

Make a backup of /etc/initramfs-tools/root/.ssh/id_rsa, which will be used to log in as root. Make the kernel configure the IP address at boot, by editing /etc/default/grub:

GRUB_CMDLINE_LINUX="ip=192.168.0.10::192.168.0.1:255.255.255.0:myhostname:eth0:off"

See Documentation/filesystems/nfs/nfsroot.txt for information about the ip kernel parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment