(chroot ${ROOT_DIR} adduser ${DEFUSER} floppy)
echo "${DEFUSER} ALL=(ALL) NOPASSWD: ALL" >> ${ROOT_DIR}/etc/sudoers
+# add local network interface
+# (works around a kde session start problem)
+cat <<EOF >> ${ROOT_DIR}/etc/network/interfaces
+
+# added by xodist
+auto lo
+iface lo inet loopback
+EOF
+
# done, clean up
mv ${ROOT_DIR}/sbin/start-stop-daemon.REAL ${ROOT_DIR}/sbin/start-stop-daemon
(chroot ${ROOT_DIR} aptitude clean)