} else {
die "unsupported suse release '$version'\n";
}
+ } elsif ($version =~ m/^(\d{4})(\d{2})(\d{2})$/) {
+ my ($year, $month, $day) = ($1, $2, $3);
+ if ($year >= 2017 && $month <= 12 && $day <= 31) {
+ # OK
+ $setup_ct_getty_service = 1;
+ } else {
+ die "unsupported suse tumbleweed release '$version'\n";
+ }
} else {
die "unrecognized suse release";
}
--- /dev/null
+hostname: pvesuse1
+net0: bridge=vmbr0,name=eth0,ip=1.2.3.4/24,gw=4.3.2.1,ip6=2001:1::/64,gw6=2001:1::ffff
+net1: bridge=vmbr0,name=eth1,ip=dhcp
--- /dev/null
+NAME="openSUSE Tumbleweed"
+# VERSION="20170729"
+ID=opensuse
+ID_LIKE="suse"
+VERSION_ID="20170729"
+PRETTY_NAME="openSUSE Tumbleweed"
+ANSI_COLOR="0;32"
+CPE_NAME="cpe:/o:opensuse:tumbleweed:20170729"
+BUG_REPORT_URL="https://bugs.opensuse.org"
+HOME_URL="https://www.opensuse.org/"
--- /dev/null
+tty1
+tty2
+tty3
+tty4
+tty5
+tty6
+console
--- /dev/null
+tty1
+tty2
+tty3
+tty4
+tty5
+tty6
+console
+lxc/console
+lxc/tty1
+lxc/tty2
+lxc/tty3
+lxc/tty4
--- /dev/null
+STARTMODE=onboot
+BOOTPROTO=static
+IPADDR_1=1.2.3.4/24
+IPADDR_2=2001:1::/64
--- /dev/null
+STARTMODE=onboot
+BOOTPROTO=dhcp4
--- /dev/null
+# --- BEGIN PVE ---
+4.3.2.1 0.0.0.0 255.255.255.255 eth0
+default 4.3.2.1 0.0.0.0 eth0
+default 2001:1::ffff - eth0
+# --- END PVE ---
--- /dev/null
+# --- BEGIN PVE ---
+ssh-rsa ABCDEFG ABC@DEF
+# --- END PVE ---
--- /dev/null
+[Unit]
+Description=Container Getty on /dev/pts/%I
+Documentation=man:agetty(8) man:machinectl(1)
+After=systemd-user-sessions.service plymouth-quit-wait.service
+After=rc-local.service
+Before=getty.target
+IgnoreOnIsolate=yes
+ConditionPathExists=/dev/pts/%I
+
+[Service]
+# The '-o' option value tells agetty to replace 'login' arguments with an
+# option to preserve environment (-p), followed by '--' for safety, and then
+# the entered username.
+ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
+Type=idle
+Restart=always
+RestartSec=0
+UtmpIdentifier=pts/%I
+TTYPath=/dev/pts/%I
+TTYReset=yes
+TTYVHangup=yes
+KillMode=process
+IgnoreSIGPIPE=no
+SendSIGHUP=yes