]> git.proxmox.com Git - pve-container.git/commit
fix issue where ttys aren't correctly set after restore
authorOguz Bektas <o.bektas@proxmox.com>
Fri, 13 Sep 2019 10:35:57 +0000 (12:35 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 17 Sep 2019 07:16:47 +0000 (09:16 +0200)
commit4b4bbe553bebac2fbc179616c90594eed275b07e
treee62761a78f197ef910b775ff09cdccd426ef3cad
parentfa91e46f471b540bf5f6f56655e8fa5bd6207464
fix issue where ttys aren't correctly set after restore

restore from unpriv to priv causes a problem with the log-in from web
console, since the /etc/securetty file isn't modified after a restore to
reflect that change (/dev/lxc/tty1 and so on).

template_fixup is normally called in post_create_hook, but we have no
$password or $ssh_keys to call the hook with during the restore. instead
we call template_fixup by itself to fix the ttys on some distributions.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/API2/LXC.pm