Skip to content

Commit

Permalink
Add hostname to /etc/hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
XECDesign committed Nov 6, 2019
1 parent d30343f commit 95ba042
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions stage1/02-net-tweaks/00-patches/01-hosts.diff

This file was deleted.

1 change: 0 additions & 1 deletion stage1/02-net-tweaks/00-patches/series

This file was deleted.

1 change: 1 addition & 0 deletions stage1/02-net-tweaks/00-run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash -e

echo "${HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname"
echo "127.0.1.1 ${HOSTNAME}" >> "${ROOTFS_DIR}/etc/hosts"

ln -sf /dev/null "${ROOTFS_DIR}/etc/systemd/network/99-default.link"

0 comments on commit 95ba042

Please sign in to comment.