Go to file
Marek Marczykowski-Górecki dd8de797e3
Move network uplink setup to a separate service
Previously, network uplink (eth0) was configured in two places:
 - udev (asynchronously)
 - qubes-misc-post.service - at the very end of the boot process

This caused multiple issues:
1. Depending on udev event processing (non-deterministic), network
   uplink could be enabled too early, for example before setting up
   firewall.
2. Again depending on udev processing, it can be enabled quite late in
   the boot process, after network.target is up and services assume
   network already configured. This for example causes qubes-firewall to
   fail DNS queries.
3. If udev happen try to enable enable networking even earlier, it may
   happend before qubesdb-daemon is started, in which case network setup
   fill fail. For this case, there was network re-setup in
   qubes-misc-post service - much later in the boot.

Fix the above by placing network uplink setup in a dedicated
qubes-network-uplink@${INTERFACE}.service unit ordered after
network-pre.target and pulled in by udev based on vif device existence,
to handle also dynamic network attach/detach.
Then, create qubes-network-uplink.service unit waiting for appropriate
interface-specific unit (if one is expected!) and order it before
network.target.

QubesOS/qubes-issues#5576
2020-12-04 03:24:02 +01:00
app-menu Fixed menu item name 2020-09-26 22:48:35 +00:00
applications-dropins Add /etc/qubes/applications override, use it for gnome-terminal 2020-01-27 14:05:55 +01:00
archlinux archlinux: disable check on unassigned pkgdir var 2020-10-21 08:37:53 +02:00
autostart-dropins Enable gnome settings daemon xsettings plugin 2018-01-12 05:44:54 +01:00
boot grub: override GRUB_DEVICE with /dev/mapper/dmroot 2020-11-02 04:33:56 +01:00
ci travis: install also python xdg module 2020-01-28 04:22:12 +01:00
config-overrides Merge app-defaults and sys-defaults to config-overrides 2020-02-05 00:12:22 +00:00
debian Move network uplink setup to a separate service 2020-12-04 03:24:02 +01:00
doc Remove qrexec-agent related files 2019-04-08 18:22:38 +02:00
filesystem Drop legacy xen entry in fstab 2020-07-26 14:30:33 +02:00
init Relax private.img condition for mkfs even further 2020-11-06 16:00:31 +01:00
misc Install 50-qubes-mem-hotplug.rules in /lib/udev instead of /etc/udev 2020-02-05 00:12:23 +00:00
network Move network uplink setup to a separate service 2020-12-04 03:24:02 +01:00
package-managers dnf-plugin: restrict to only version provided by plateform-python 2020-10-30 10:46:56 +01:00
passwordless-root passwordless-root: sudo: grant access for group qubes 2020-09-13 14:17:06 +00:00
patches.debian Split items in misc directory by topic 2020-02-04 23:59:09 +00:00
pkgs archlinux: created build scripts 2013-04-17 01:22:32 +02:00
qubes-rpc Merge remote-tracking branch 'origin/pr/266' 2020-12-01 03:57:57 +01:00
qubesagent Do not use legacy distutils.spawn 2020-07-02 02:56:13 +02:00
rpm_spec Move network uplink setup to a separate service 2020-12-04 03:24:02 +01:00
test-packages tests: add run-tests script, plug it into travis 2017-05-20 13:20:08 +02:00
vm-init.d Move qubes-firewall from sbin to bin 2020-02-05 00:12:22 +00:00
vm-systemd Move network uplink setup to a separate service 2020-12-04 03:24:02 +01:00
.coveragerc tests: add run-tests script, plug it into travis 2017-05-20 13:20:08 +02:00
.gitignore debian: add 'rpm' as dependency 2020-06-19 19:15:52 +02:00
.gitlab-ci.yml gitlab-ci: install test dependencies 2020-11-23 12:49:38 +01:00
.travis.yml travis: allow bullseye install to fail - no dnf/yum available 2020-09-16 15:40:51 +02:00
debian-quilt debian: fix shellcheck warnings in debian packaging 2017-09-30 05:05:33 +02:00
LICENSE Added LICENSE 2010-04-05 21:21:27 +02:00
Makefile Add a service to enable swap early - before fsck of the root filesystem 2020-11-03 05:18:57 +01:00
Makefile.builder Allow build for Focal 2020-10-10 04:18:19 +02:00
run-tests Load only test_* files when looking for tests (python) 2018-04-02 23:19:02 +02:00
series-debian-jessie-vm.conf Revert "Use sfdisk instead of parted to ..." on stretch and jessie 2019-02-24 05:15:04 +01:00
series-debian-stretch-vm.conf Revert "Use sfdisk instead of parted to ..." on stretch and jessie 2019-02-24 05:15:04 +01:00
series-debian-vm.conf Stop anacron from starting in Debian using existing constraint on cron 2017-02-05 23:36:27 +00:00
setup.py Install faster console scripts for Python code 2020-01-24 18:45:16 +01:00
version version 4.1.18 2020-10-31 05:39:07 +01:00