mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 05:03:17 +00:00
commit
941138edba
@ -264,13 +264,12 @@ systemd_container_tuning () {
|
|||||||
# /usr/lib/systemd/system-generators/gentoo-local-generator: line 4: cd: /etc/local.d: No such file or directory
|
# /usr/lib/systemd/system-generators/gentoo-local-generator: line 4: cd: /etc/local.d: No such file or directory
|
||||||
mkdir ${rootfs}/etc/local.d/
|
mkdir ${rootfs}/etc/local.d/
|
||||||
|
|
||||||
# Fix TERM variable for container console
|
mkdir ${rootfs}/etc/systemd/system/NetworkManager.service.d/
|
||||||
mkdir container-getty\@0.service.d
|
cat <<EOF > ${rootfs}/etc/systemd/system/NetworkManager.service.d/override.conf
|
||||||
cat <<EOF > container-getty\@0.service.d/00gentoo.conf
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=TERM=
|
ExecStartPre=-/bin/ip -4 link set dev eth0 down
|
||||||
Environment=TERM=linux
|
|
||||||
EOF
|
EOF
|
||||||
|
chmod 644 ${rootfs}/etc/systemd/system/NetworkManager.service.d/override.conf
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user