mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #3660 from holta/systemd-resolved_raspios
sysd-netd-debian.yml: Install apt package 'systemd-resolved' if OS offers it (RasPiOS Bookworm issue)
This commit is contained in:
commit
5f603769da
3 changed files with 18 additions and 3 deletions
|
@ -31,7 +31,6 @@
|
|||
- libnss-mdns # 27kB download: RasPiOS (and package avahi-daemon, above) install this regardless -- client-side library -- provides name resolution via mDNS (Multicast DNS) using Zeroconf/Bonjour e.g. Avahi
|
||||
- netmask # 25kB download: Handy utility -- helps determine network masks
|
||||
- net-tools # 248kB download: RasPiOS installs this regardless -- @jvonau suggests possibly deleting this...unless oldtimers really want these older commands in iiab-diagnostics output?
|
||||
- networkd-dispatcher # 15kB download: Dispatcher service for systemd-networkd connection status changes
|
||||
- rfkill # 87kB download: RasPiOS installs this regardless -- enable & disable wireless devices
|
||||
- wireless-tools # 112kB download: RasPiOS installs this regardless -- manipulate Linux Wireless Extensions
|
||||
- wpasupplicant # 1188kB download: RasPiOS installs this regardless -- client library for connections to a WiFi AP
|
||||
|
|
|
@ -75,13 +75,13 @@
|
|||
- name: NetworkManager in use
|
||||
include_tasks: NM-debian.yml
|
||||
when: network_manager_active
|
||||
#when: is_debuntu and network_manager_active
|
||||
|
||||
- name: systemd-networkd in use
|
||||
include_tasks: sysd-netd-debian.yml
|
||||
when: systemd_networkd_active
|
||||
#when: is_debuntu and systemd_networkd_active
|
||||
#when: systemd_networkd_active and not network_manager_active # 2023-10-11: NOT the right way to solve #3657 (systemd-resolved issue on RasPiOS 12+) as this would damage Ubuntu/Mint.
|
||||
|
||||
# 2023-10-11: Should rpi_debian.yml go away in future, now that RasPiOS Bookworm uses NetworkManager?
|
||||
- name: Raspbian can use dhcpcd only with no N-M or SYS-NETD active
|
||||
include_tasks: rpi_debian.yml
|
||||
when: is_raspbian and not network_manager_active
|
||||
|
|
|
@ -1,4 +1,20 @@
|
|||
# sysd-netd-debian.yml
|
||||
- name: Install networkd-dispatcher
|
||||
package:
|
||||
name: networkd-dispatcher # 15kB download: Dispatcher service for systemd-networkd connection status changes
|
||||
|
||||
# 2023-10-14 #3657, #3658, #3659: New RasPiOS 12/Bookworm issue.
|
||||
# FWIW Ubuntu >= 22.10 offers 'systemd-resolved' as a distinct apt package.
|
||||
# Whereas Ubuntu <= 22.04 bundled the functionality within apt package 'systemd'
|
||||
# Debian 12/Bookworm (like Ubuntu >= 22.10) offers it as a distinct package:
|
||||
# https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#systemd-resolved
|
||||
- name: Install systemd-resolved (or intentionally show red error then continue, if apt package not available)
|
||||
package:
|
||||
name: systemd-resolved # 278kB download: For RasPiOS 12/Bookworm
|
||||
ignore_errors: yes
|
||||
#shell: apt -y install systemd-resolved || true
|
||||
#when: is_raspbian and os_ver is version('raspbian-12', '>=')
|
||||
|
||||
- name: Copy the bridge script - Creates br0
|
||||
template:
|
||||
dest: /etc/systemd/network/IIAB-Bridge.netdev
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue