Run dhcpcd on all devices
As we did with initscripts, run dhcpcd on all devices and not just eth0. Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
parent
d2e69f4a4a
commit
41def4c27d
@ -194,7 +194,7 @@ make_customize_root_image() {
|
||||
-r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" -s /bin/zsh arch' \
|
||||
run
|
||||
mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
|
||||
-r 'systemctl -f enable multi-user.target haveged.service pacman-init.service autologin@.service dhcpcd@.service || true' \
|
||||
-r 'systemctl -f enable multi-user.target haveged.service pacman-init.service autologin@.service dhcpcd.service || true' \
|
||||
run
|
||||
: > ${work_dir}/build.${FUNCNAME}
|
||||
fi
|
||||
|
@ -1,6 +0,0 @@
|
||||
#
|
||||
# Arguments to be passed to the DHCP client daemon
|
||||
#
|
||||
|
||||
DHCPCD_ARGS="-qb"
|
||||
|
13
configs/releng/root-image/etc/systemd/system/dhcpcd.service
Normal file
13
configs/releng/root-image/etc/systemd/system/dhcpcd.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=dhcpcd on all interfaces
|
||||
Wants=network.target
|
||||
Before=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/dhcpcd.pid
|
||||
ExecStart=/sbin/dhcpcd -A -b -q
|
||||
ExecStop=/sbin/dhcpcd -k
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user