From 1d24a045a8d38f0192f59baca8e46e43678caefb Mon Sep 17 00:00:00 2001 From: Miguel Bernal Marin Date: Tue, 12 Jun 2018 02:03:16 -0500 Subject: [PATCH] acrn-bridge: improve systemd network units To be sorted in lexical order let's add a 50- prefix to the systemd network units files. Now these systemd network units will be processed before the other units prefixed by 80-. And the first (in lexical order) of the network files that matches a given device is applied, all later files are ignored, even if they match as well. Signed-off-by: Miguel Bernal Marin Acked-by: Geoffroy Van Cutsem --- tools/acrnbridge/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/acrnbridge/Makefile b/tools/acrnbridge/Makefile index dae5c009f..fe3367d45 100644 --- a/tools/acrnbridge/Makefile +++ b/tools/acrnbridge/Makefile @@ -10,7 +10,7 @@ all: install: install -d $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network - install -p -D -m 0644 $(OUT_DIR)/acrn.netdev $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network - install -p -D -m 0644 $(OUT_DIR)/acrn.network $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network - install -p -D -m 0644 $(OUT_DIR)/acrn_tap0.netdev $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network - install -p -D -m 0644 $(OUT_DIR)/eth.network $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network + install -p -D -m 0644 $(OUT_DIR)/acrn.netdev $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network/50-acrn.netdev + install -p -D -m 0644 $(OUT_DIR)/acrn.network $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network/50-acrn.network + install -p -D -m 0644 $(OUT_DIR)/acrn_tap0.netdev $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network/50-acrn_tap0.netdev + install -p -D -m 0644 $(OUT_DIR)/eth.network $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network/50-eth.network