/etc/network/if-up.d/resolved: 12: mystatedir: not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
We're using ifupdown-
Mar 13 14:18:15 hostname-goes-here ifup[506]: /etc/network/
The relevant lines in /etc/network/
1 #!/bin/sh
2 #
3 # Script fragment to make ifupdown supply DNS infromation to resolved
4 #
5
6 case "$ADDRFAM" in
7 inet|inet6) : ;;
8 *) exit 0 ;;
9 esac
10
11 if systemctl is-enabled systemd-resolved > /dev/null 2>&1; then
12 mystatedir statedir ifindex interface
13
14 interface=$IFACE
15 if [ ! "$interface" ]; then
16 return
17 fi
Surprisingly, the same line is present in /etc/network/
Given that line 16 says 'return', I'm guessing that this used to be a function, and so line 12 might have started with 'local'...?
Fortunately, this is just a cosmetic problem, generating a few errors in the system logs.
affects: | bind9 (Ubuntu) → ifupdown (Ubuntu) |