Sha256: 2cf7b0af5073c05db3ad25d554d21d107f736204e8bd887223a437f3bc6313b5

Contents?: true

Size: 770 Bytes

Versions: 16

Compression:

Stored size: 770 Bytes

Contents

#!/bin/bash

# Requires
#   ssh.sh
#   bootloader.sh

# https://bugs.archlinux.org/task/31250
# Since systemd reboot does not notify/close SSH client connections, veewee
# never tries to reconnect to the VM post-reboot. This flaky workaround tries
# to ensure that client connections have been disconnected prior to reboot.
cp /usr/lib/systemd/system/systemd-user-sessions.service /etc/systemd/system
sed -i 's/\(After=remote-fs.target\)/\1 network.target/' /etc/systemd/system/systemd-user-sessions.service
systemctl daemon-reload
rm -f /etc/systemd/system/systemd-user-sessions.service

if [ -d /mnt/root ]; then
  # Since /mnt/root exists, we must be inside a chroot. Copy over scripts so
  # they're available post-reboot.
  cp -r /root/{*,.v*} /mnt/root
fi

reboot

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 templates/archlinux-x86_64/reboot.sh
veewee-0.5.0.alpha3 templates/archlinux-x86_64/reboot.sh
veewee-0.5.0.alpha2 templates/archlinux-x86_64/reboot.sh
veewee-0.5.0.alpha1 templates/archlinux-x86_64/reboot.sh
veewee-0.4.5.1 templates/archlinux-x86_64/reboot.sh
veewee-0.4.5 templates/archlinux-x86_64/reboot.sh
veewee-0.4.5.pre1 templates/archlinux-x86_64/reboot.sh
veewee-0.4.4 templates/archlinux-x86_64/reboot.sh
veewee-0.4.3 templates/archlinux-x86_64/reboot.sh
veewee-0.4.2 templates/archlinux-x86_64/reboot.sh
veewee-0.4.1 templates/archlinux-x86_64/reboot.sh
veewee-0.4.0 templates/archlinux-x86_64/reboot.sh
veewee-0.3.12 templates/archlinux-x86_64/reboot.sh
veewee-0.3.11 templates/archlinux-x86_64/reboot.sh
veewee-0.3.10 templates/archlinux-x86_64/reboot.sh
veewee-0.3.9 templates/archlinux-x86_64/reboot.sh