]> spindle.queued.net Git - xodist/blobdiff - initchroot.sh
initchroot: the loopback interface was missing from the default install
[xodist] / initchroot.sh
index cce9f0447bbd381e6713260cf7471814bbd2e1cb..91f364a7997e2fb16c705eaed26fc230af70cf0e 100755 (executable)
@@ -232,6 +232,13 @@ rm -rf ${ROOT_DIR}/home/*;         # i have no idea what's adding this crap...
 (chroot ${ROOT_DIR} adduser ${DEFUSER} floppy)
 echo "${DEFUSER} ALL=(ALL) NOPASSWD: ALL" >> ${ROOT_DIR}/etc/sudoers
 
+# add local network interface
+cat >>${ROOT_DIR}/etc/network/interfaces<<EOF
+
+auto lo
+iface lo inet loopback
+EOF
+
 # configure sugar
 if [ -d ${ROOT_DIR}/usr/share/sugar ]; then
     # #?