we need those newlines
This commit is contained in:
parent
3179f6883a
commit
e427b141c7
@ -30,7 +30,7 @@ rchroot grub-install /dev/sda
|
||||
rchroot grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
IF_NAME="$(udevadm info -q all -p /sys/class/net/eth0 | grep ID_NET_NAME_SLOT | cut -d'=' -f2)"
|
||||
echo "[Match]\nName=${IF_NAME}\n\n[Network]\nDHCP=yes\n" > "root.x86_64/mnt/etc/systemd/network/${IF_NAME}.network"
|
||||
echo -e "[Match]\nName=${IF_NAME}\n\n[Network]\nDHCP=yes\n" > "root.x86_64/mnt/etc/systemd/network/${IF_NAME}.network"
|
||||
rchroot systemctl enable systemd-networkd
|
||||
rchroot systemctl enable systemd-resolved
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user