Drop netctl in favor of systemd-networkd and systemd-resolved

* Following upstream archiso

* NetworkManager stays as default in SystemRescueCd

* Explicitly symlink /etc/resolv.conf to /run/NetworkManager/resolv.conf
  to make clear NetworkManager is in charge

Closes fdupoux/sysresccd-src#75
This commit is contained in:
Marcos Mello 2020-06-29 15:37:29 -03:00
parent bc23e2dc90
commit efd0d23dd2
4 changed files with 25 additions and 3 deletions

View file

@ -0,0 +1,10 @@
[Match]
Name=en*
Name=eth*
[Network]
DHCP=yes
IPv6PrivacyExtensions=yes
[DHCP]
RouteMetric=512

View file

@ -0,0 +1,10 @@
[Match]
Name=wlp*
Name=wlan*
[Network]
DHCP=yes
IPv6PrivacyExtensions=yes
[DHCP]
RouteMetric=1024

View file

@ -23,6 +23,9 @@ sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf
sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf
sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf
# NetworkManager is enabled by default
ln -sf /run/NetworkManager/resolv.conf /etc/resolv.conf
# PulseAudio takes care of volume restore
ln -sf /dev/null /etc/udev/rules.d/90-alsa-restore.rules

View file

@ -18,8 +18,8 @@ darkhttpd
ddrescue
dhclient
dialog
discount
diffutils
discount
dmidecode
dmraid
dnsmasq
@ -30,8 +30,8 @@ e2fsprogs
efitools
elinks
ethtool
expac
exfat-utils
expac
f2fs-tools
featherpad
firefox-esr-bin
@ -91,7 +91,6 @@ nano
nbd
ncdu
ndisc6
netctl
network-manager-applet
networkmanager-openvpn
networkmanager-vpnc