Skip to content

Commit

Permalink
Do not create bridge as part of package, this is best handled either
Browse files Browse the repository at this point in the history
through seperate command, or kept outside of scope completely.
  • Loading branch information
hurenkam committed Dec 30, 2024
1 parent d62f4c1 commit ca91b06
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
11 changes: 0 additions & 11 deletions arch/proto.install
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ post_install() {
ln -s /usr/share/edk2/x64/OVMF_CODE.4m.fd /usr/share/ezkvm/OVMF_CODE_4M.fd
ln -s /usr/share/edk2/x64/OVMF_CODE.secboot.4m.fd /usr/share/ezkvm/OVMF_CODE_4M.secboot.fd

# Create the vmbr0 bridge using NetworkManager
# Both EndeavorOS gemini as well as ubuntu 24.04 use
# this by default, and so this should work for these
# distro's. Other distro's may require manual intervention
nmcli connection add type bridge ifname vmbr0 stp no
nmcli connection up bridge-vmbr0
nmcli connection modify bridge-vmbr0 ipv4.address 192.168.92.1
nmcli connection modify bridge-vmbr0 ipv4.method manual
nmcli connection up bridge-vmbr0

# Since ezkvm is aimed at using proxmox vm's on other
# distro's, the following rules will give read/write
# access for the proxmxox vm drives to members of the
Expand Down Expand Up @@ -75,7 +65,6 @@ post_remove() {
rm -f /etc/qemu/bridge.conf
rm -f /etc/udev/rules.d/92_ezkvm.rules
rm -f /etc/security/limits.d/92_ezkvm.conf
nmcli connection delete bridge-vmbr0
chmod -s /usr/lib/qemu/qemu-bridge-helper
}

11 changes: 0 additions & 11 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,3 @@ chmod +s /usr/lib/qemu/qemu-bridge-helper
ln -s /usr/share/OVMF/OVMF_CODE.fd /usr/share/ezkvm/OVMF_CODE.fd
ln -s /usr/share/OVMF/OVMF_CODE_4M.fd /usr/share/ezkvm/OVMF_CODE_4M.fd
ln -s /usr/share/OVMF/OVMF_CODE_4M.secboot.fd /usr/share/ezkvm/OVMF_CODE_4M.secboot.fd

# Create the vmbr0 bridge using NetworkManager
# Both EndeavorOS gemini as well as ubuntu 24.04 use
# this by default, and so this should work for these
# distro's. Other distro's may require manual intervention
nmcli connection add type bridge ifname vmbr0 stp no
nmcli connection up bridge-vmbr0
nmcli connection modify bridge-vmbr0 ipv4.address 192.168.92.1
nmcli connection modify bridge-vmbr0 ipv4.method manual
nmcli connection up bridge-vmbr0

1 change: 0 additions & 1 deletion debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ case $# in
rm -f /etc/security/limits.d/92-ezkvm.conf
rm -rf /var/ezkvm
rm -rf /usr/share/ezkvm
nmcli connection delete bridge-vmbr0
chmod -s /usr/lib/qemu/qemu-bridge-helper
;;

Expand Down

0 comments on commit ca91b06

Please sign in to comment.