From 4674c05ee34bb2edf8941f0553a000bd0681e358 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 15 Nov 2018 21:01:26 -0500 Subject: fix rebooting --- bin/helpers/launch-partofme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/helpers') diff --git a/bin/helpers/launch-partofme b/bin/helpers/launch-partofme index 4adb695..aa857be 100755 --- a/bin/helpers/launch-partofme +++ b/bin/helpers/launch-partofme @@ -26,7 +26,9 @@ run "sed -i 's/^HOOKS=(base udev.*block /&mdadm encrypt lvm2 /' /etc/mkinitcpio. run "pacman -Syu --noconfirm" # reboot to get our disks detected and to make sure we're actually running the # latest kernel, or else loading the wireguard modules will fail -run "reboot" +# suppress errors here because typically sshd will drop your connection before +# the reboot command gets a chance to return successfully +run "reboot" || true while ! run true; do sleep 5 -- cgit v1.2.3-54-g00ecf