]> git.proxmox.com Git - pve-container.git/commitdiff
set TERM=linux for containers
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Sep 2015 05:38:02 +0000 (07:38 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Sep 2015 05:38:02 +0000 (07:38 +0200)
some init scripts expects a linux terminals (turnkey).

src/PVE/LXC.pm

index 40eda10dbd084df8a863d2c7e1eca5e9513a5367..99496f9328fd7e385f1574ab4848ad41de806b20 100644 (file)
@@ -1087,6 +1087,9 @@ sub update_lxc_config {
     my $ttycount = get_tty_count($conf);
     $raw .= "lxc.tty = $ttycount\n";
 
+    # some init scripts expects a linux terminal (turnkey).
+    $raw .= "lxc.environment = TERM=linux\n";
+    
     my $utsname = $conf->{hostname} || "CT$vmid";
     $raw .= "lxc.utsname = $utsname\n";