c84d4924ef
Required to support Gentoo is the ability to bind mount a new shared directory. In order to support this, _lxc_container_bind_mounts has been created for use in per-distro variables. For Gentoo the new bind mounts allows the sharing of package data, shrinking both the container size and the time needed to install packages. Also needed was the creation of the `sysctl_path` variable as Gentoo installs sysctl to an alternate location. Change-Id: I8c20631aff9ee30289ef2f7f862ba0d4e1bb4569
18 lines
337 B
Django/Jinja
18 lines
337 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description=Apply Kernel Variables in Container
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
After=systemd-modules-load.service
|
|
Before=sysinit.target shutdown.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart={{ sysctl_path }}/sysctl -p
|
|
TimeoutSec=90s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|