we need those newlines
This commit is contained in:
@@ -30,7 +30,7 @@ rchroot grub-install /dev/sda
|
|||||||
rchroot grub-mkconfig -o /boot/grub/grub.cfg
|
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)"
|
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-networkd
|
||||||
rchroot systemctl enable systemd-resolved
|
rchroot systemctl enable systemd-resolved
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user