fix: el nombre de usuario puede ser distinto al hostname

This commit is contained in:
f
2026-04-20 13:41:20 -03:00
parent 2f836ee933
commit d254955032

View File

@ -17,6 +17,7 @@ copy_exec /usr/sbin/ip /usr/sbin/
rm "$DESTDIR/etc/dhcpcd.conf"
grep root: "$DESTDIR/etc/passwd" | sed -re "s/root:/`hostname`:/" >> "$DESTDIR/etc/passwd"
grep root: "$DESTDIR/etc/passwd" | sed -re "s/root:/${SUDO_USER}:/" >> "$DESTDIR/etc/passwd"
copy_file config /etc/dhcpcd.conf
copy_file config /var/lib/dhcpcd/duid