Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…tdown-reboot for Ubuntu Xenial
  • Loading branch information
ruzickap committed Apr 7, 2018
1 parent a5233c4 commit 17a6605
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/ubuntu/add_libpam-systemd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -eux

# This script should fix problems with hanged ssh session when the Ubuntu server is rebooted
# The same problem appear when using "vagrant halt"
# I saw this issue in minimal installation for Xenial
# Description: https://serverfault.com/questions/706475/ssh-sessions-hang-on-shutdown-reboot

export DEBIAN_FRONTEND="noninteractive"
apt-get install -qq -y libpam-systemd
1 change: 1 addition & 0 deletions ubuntu-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -S -E bash -x '{{ .Path }}'",
"scripts": [
"scripts/ubuntu/update.sh",
"scripts/ubuntu/add_libpam-systemd.sh",
"scripts/ubuntu/disable_apt-daily.sh",
"scripts/linux-common/vagrant.sh",
"scripts/linux-common/cleanup.sh"
Expand Down

0 comments on commit 17a6605

Please sign in to comment.