Made username, password, and hostname generic
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
Index: jessie-stage1/rootfs/etc/hosts
|
||||
===================================================================
|
||||
--- jessie-stage1.orig/rootfs/etc/hosts
|
||||
+++ jessie-stage1/rootfs/etc/hosts
|
||||
@@ -3,3 +3,4 @@
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
|
||||
+127.0.1.1 raspberrypi
|
||||
@@ -2,8 +2,17 @@
|
||||
|
||||
install -m 644 files/ipv6.conf ${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf
|
||||
install -m 644 files/interfaces ${ROOTFS_DIR}/etc/network/interfaces
|
||||
install -m 644 files/hostname ${ROOTFS_DIR}/etc/hostname
|
||||
|
||||
on_chroot sh -e - << EOF
|
||||
cat <<EOF > ${ROOTFS_DIR}/etc/hostname
|
||||
${HOST_NAME}
|
||||
EOF
|
||||
|
||||
# Append hostname
|
||||
cat <<EOF >> ${ROOTFS_DIR}/etc/hosts
|
||||
|
||||
127.0.1.1 ${HOST_NAME}
|
||||
EOF
|
||||
|
||||
on_chroot sh -e - <<EOF
|
||||
dpkg-divert --add --local /lib/udev/rules.d/75-persistent-net-generator.rules
|
||||
EOF
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
raspberrypi
|
||||
Reference in New Issue
Block a user