mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 12:06:12 +00:00
Merge pull request #916 from ojkastl/20160324_Fix_path_to_lxc-net_config
lxc.spec.in: fixed hardcoded path to lxc-net config file
This commit is contained in:
commit
cce8b5cf1d
@ -169,7 +169,7 @@ fi
|
||||
|
||||
%post
|
||||
# This test should trigger a network configure on a new install.
|
||||
if [ ! -f %{_sysconfdir}/sysconfig/lxc-net ] || ! grep -q 'USE_LXC_BRIDGE=' %{_sysconfdir}/sysconfig/lxc-net
|
||||
if [ ! -f @LXC_DISTRO_SYSCONF@/lxc-net ] || ! grep -q 'USE_LXC_BRIDGE=' @LXC_DISTRO_SYSCONF@/lxc-net
|
||||
then
|
||||
# Grab a random 10net subnet. Need to add test logic...
|
||||
while [ true ]
|
||||
@ -181,7 +181,7 @@ then
|
||||
fi
|
||||
done
|
||||
|
||||
cat > %{_sysconfdir}/sysconfig/lxc-net <<EOF
|
||||
cat > @LXC_DISTRO_SYSCONF@/lxc-net <<EOF
|
||||
# Leave USE_LXC_BRIDGE as "true" if you want to use lxcbr0 for your
|
||||
# containers. Set to "false" if you'll use virbr0 or another existing
|
||||
# bridge, or mavlan to your host's NIC.
|
||||
|
Loading…
Reference in New Issue
Block a user