[systemd] dh_installinit does not create /etc/rc*.d/S??foo if there is an /etc/init/foo.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debhelper (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
ifupdown (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
sysvinit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I had no networking when I booted up with systemd just now.
laney@raleigh> cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
laney@raleigh> ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:572 errors:0 dropped:0 overruns:0 frame:0
TX packets:572 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46364 (46.3 KB) TX bytes:46364 (46.3 KB)
laney@raleigh> more /etc/network/
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
laney@raleigh> sudo ifup eth0 br0
ifup: failed to open lockfile /run/network/
Then copying from /etc/init/
laney@raleigh> sudo mkdir -p /run/network
laney@raleigh> sudo ifup -a
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Listening on LPF/br0/
Sending on LPF/br0/
Sending on Socket/fallback
DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 3 (xid=0x1b02ce25)
DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 7 (xid=0x1b02ce25)
DHCPREQUEST of 192.168.1.136 on br0 to 255.255.255.255 port 67 (xid=0x1b02ce25)
DHCPOFFER of 192.168.1.136 from 192.168.1.1
DHCPACK of 192.168.1.136 from 192.168.1.1
bound to 192.168.1.136 -- renewal in 39350 seconds.
laney@raleigh> cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.1
I feel like there's probably an existing systemd-ish way of doing this.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ifupdown 0.7.47.2ubuntu4
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Apr 25 18:01:25 2014
InstallationDate: Installed on 2012-10-07 (564 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20121007)
SourcePackage: ifupdown
UpgradeStatus: Upgraded to trusty on 2013-05-07 (353 days ago)
Related branches
- Martin Pitt: Approve
- Steve Langasek: Needs Fixing
-
Diff: 1493 lines (+1203/-47)21 files modifieddebian/changelog (+22/-0)
debian/control (+3/-2)
debian/initscripts.conffiles (+11/-0)
debian/initscripts.postinst (+36/-13)
debian/initscripts.postrm (+11/-0)
debian/initscripts.preinst (+2/-11)
debian/src/initscripts/etc/init.d/bootmisc.sh (+61/-0)
debian/src/initscripts/etc/init.d/checkfs.sh (+154/-0)
debian/src/initscripts/etc/init.d/checkroot-bootclean.sh (+44/-0)
debian/src/initscripts/etc/init.d/checkroot.sh (+364/-0)
debian/src/initscripts/etc/init.d/hostname.sh (+68/-0)
debian/src/initscripts/etc/init.d/mountall-bootclean.sh (+37/-0)
debian/src/initscripts/etc/init.d/mountall.sh (+94/-0)
debian/src/initscripts/etc/init.d/mountdevsubfs.sh (+67/-0)
debian/src/initscripts/etc/init.d/mountkernfs.sh (+74/-0)
debian/src/initscripts/etc/init.d/mountnfs-bootclean.sh (+37/-0)
debian/src/initscripts/etc/init.d/mountnfs.sh (+105/-0)
debian/src/sysv-rc/sbin/invoke-rc.d (+2/-3)
debian/src/sysv-rc/sbin/update-rc.d (+7/-4)
debian/sysv-rc.postinst (+4/-12)
debian/sysv-rc.preinst (+0/-2)
summary: |
- Doesn't bring up interfaces from /etc/network/interfaces + [systemd] Doesn't bring up interfaces from /etc/network/interfaces |
Changed in sysvinit (Ubuntu): | |
status: | New → In Progress |
tags: | added: block-proposed |
tags: | removed: block-proposed |
tags: | added: block-proposed |
tags: | removed: block-proposed |
Changed in sysvinit (Ubuntu): | |
status: | In Progress → Fix Committed |
tags: | added: block-proposed |
Changed in debhelper (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in sysvinit (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in ifupdown (Ubuntu): | |
status: | Triaged → Fix Committed |
tags: | removed: block-proposed |
Status changed to 'Confirmed' because the bug affects multiple users.