Commit 31e53101 authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

add mtu support for manual interfaces

tested with classic linux interfaces/bridge and openvswitch interfaces
Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent b0263026
...@@ -79,7 +79,7 @@ aplupload: ...@@ -79,7 +79,7 @@ aplupload:
scp aplinfo/aplinfo.dat aplinfo.dat.gz aplinfo/aplinfo.dat.asc download1.proxmox.com:/home/ftp/appliances/ scp aplinfo/aplinfo.dat aplinfo.dat.gz aplinfo/aplinfo.dat.asc download1.proxmox.com:/home/ftp/appliances/
.PHONY: install .PHONY: install
install: country.dat vznet.conf vzdump.conf vzdump-hook-script.pl pve-apt.conf pve-repo-ca-certificates.crt install: country.dat vznet.conf vzdump.conf vzdump-hook-script.pl pve-apt.conf pve-repo-ca-certificates.crt mtu
install -d -m 0700 -o www-data -g www-data ${DESTDIR}/var/log/pveproxy install -d -m 0700 -o www-data -g www-data ${DESTDIR}/var/log/pveproxy
install -D -m 0644 debian/pve.logrotate ${DESTDIR}/etc/logrotate.d/pve install -D -m 0644 debian/pve.logrotate ${DESTDIR}/etc/logrotate.d/pve
install -d ${DESTDIR}/usr/share/${PACKAGE} install -d ${DESTDIR}/usr/share/${PACKAGE}
...@@ -95,6 +95,7 @@ install: country.dat vznet.conf vzdump.conf vzdump-hook-script.pl pve-apt.conf p ...@@ -95,6 +95,7 @@ install: country.dat vznet.conf vzdump.conf vzdump-hook-script.pl pve-apt.conf p
install -D -m 0644 pve-repo-ca-certificates.crt ${DESTDIR}/etc/apt/pve-repo-ca-certificates.crt install -D -m 0644 pve-repo-ca-certificates.crt ${DESTDIR}/etc/apt/pve-repo-ca-certificates.crt
install -D -m 0644 vzdump.conf ${DESTDIR}/etc/vzdump.conf install -D -m 0644 vzdump.conf ${DESTDIR}/etc/vzdump.conf
install -D -m 0755 vznet.conf ${DESTDIR}/etc/vz/vznet.conf install -D -m 0755 vznet.conf ${DESTDIR}/etc/vz/vznet.conf
install -D -m 0755 mtu ${DESTDIR}/etc/network/if-up.d/mtu
install -m 0644 vzdump-hook-script.pl ${DOCDIR}/examples/vzdump-hook-script.pl install -m 0644 vzdump-hook-script.pl ${DOCDIR}/examples/vzdump-hook-script.pl
install -m 0644 copyright ${DOCDIR} install -m 0644 copyright ${DOCDIR}
install -m 0644 debian/changelog.Debian ${DOCDIR} install -m 0644 debian/changelog.Debian ${DOCDIR}
......
...@@ -12,3 +12,4 @@ ...@@ -12,3 +12,4 @@
/etc/apt/apt.conf.d/75pveconf /etc/apt/apt.conf.d/75pveconf
/etc/apt/pve-repo-ca-certificates.crt /etc/apt/pve-repo-ca-certificates.crt
/etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list
/etc/network/if-up.d/mtu
#!/bin/sh
case "$IFACE" in
# Ignore any alias (#272891) which uses <interface>:<alabel>
*:*)
exit 0
;;
esac
if [ "$METHOD" != manual ]; then
exit 0
fi
if [ -n "$IF_MTU" ]; then
ip link set $IFACE mtu $IF_MTU
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment