]> spindle.queued.net Git - xodist/commitdiff
initchroot: the loopback interface was missing from the default install
authorJames Cameron <quozl@laptop.org>
Sun, 26 Oct 2008 22:48:48 +0000 (18:48 -0400)
committerAndres Salomon <dilinger@debian.org>
Sun, 26 Oct 2008 22:48:48 +0000 (18:48 -0400)
Signed-off-by: Andres Salomon <dilinger@debian.org>
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
     # #?