diff options
Diffstat (limited to 'polystrap/default')
25 files changed, 141 insertions, 0 deletions
diff --git a/polystrap/default/config b/polystrap/default/config new file mode 100644 index 000000000..78873f4d9 --- /dev/null +++ b/polystrap/default/config @@ -0,0 +1,4 @@ +SUITE="sid" +ARCH="armel" +ROOTDIR="debian-$SUITE-$ARCH-`date +%F`" +MIRROR="http://cdn.debian.net/debian" diff --git a/polystrap/default/debconfseed.txt b/polystrap/default/debconfseed.txt new file mode 100644 index 000000000..8502a8d81 --- /dev/null +++ b/polystrap/default/debconfseed.txt @@ -0,0 +1,23 @@ +locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8 +locales locales/default_environment_locale select en_US.UTF-8 +tzdata tzdata/Zones/Australia select +tzdata tzdata/Zones/US select +tzdata tzdata/Zones/Asia select +tzdata tzdata/Zones/Etc select UTC +tzdata tzdata/Zones/SystemV select +tzdata tzdata/Zones/Arctic select +tzdata tzdata/Zones/Pacific select +tzdata tzdata/Zones/Antarctica select +tzdata tzdata/Zones/Europe select Berlin +tzdata tzdata/Zones/Africa select +tzdata tzdata/Zones/America select +tzdata tzdata/Areas select Europe +tzdata tzdata/Zones/Atlantic select +tzdata tzdata/Zones/Indian select +nodm nodm/xinit string /usr/bin/xinit +nodm nodm/min_session_time string 60 +nodm nodm/enabled boolean true +nodm nodm/xsession string /etc/X11/Xsession +nodm nodm/x_options string vt7 -nolisten tcp +nodm nodm/first_vt string 7 +nodm nodm/user string user diff --git a/polystrap/default/hooks/create_user b/polystrap/default/hooks/create_user new file mode 100644 index 000000000..0404ea23b --- /dev/null +++ b/polystrap/default/hooks/create_user @@ -0,0 +1,2 @@ +fakechroot chroot $ROOTDIR useradd user -p `openssl passwd -crypt -salt // ""` -s /bin/bash --create-home +fakechroot chroot $ROOTDIR usermod -a -G audio,dialout user diff --git a/polystrap/default/hooks/empty_password b/polystrap/default/hooks/empty_password new file mode 100644 index 000000000..1c486137a --- /dev/null +++ b/polystrap/default/hooks/empty_password @@ -0,0 +1,2 @@ +sed -i 's/\(root:\)[^:]*\(:\)/\1'`openssl passwd -crypt -salt // "" | sed 's/\(\/\|\\\|&\)/\\\&/g'`'\2/' $ROOTDIR/etc/shadow +sed -i 's/\(PermitEmptyPasswords\) no/\1 yes/' $ROOTDIR/etc/ssh/sshd_config diff --git a/polystrap/default/hooks/firstboot b/polystrap/default/hooks/firstboot new file mode 100644 index 000000000..7f1119e3c --- /dev/null +++ b/polystrap/default/hooks/firstboot @@ -0,0 +1,23 @@ +cat > $ROOTDIR/etc/init.d/firstboot << __END__ +#!/bin/sh -e +### BEGIN INIT INFO +# Provides: firstboot +# Required-Start: \$all +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO + +for f in rsa dsa ecdsa; do rm -rf /etc/ssh/ssh_host_\${f}_key; done +echo "generating ssh rsa key..." +ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -C "" -N "" +echo "generating ssh dsa key..." +ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -C "" -N "" +echo "generating ssh ecdsa key..." +ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -C "" -N "" + +update-rc.d -f firstboot remove +__END__ + +chmod +x $ROOTDIR/etc/init.d/firstboot +fakechroot chroot $ROOTDIR update-rc.d firstboot start 99 S diff --git a/polystrap/default/hooks/serial_tty b/polystrap/default/hooks/serial_tty new file mode 100644 index 000000000..4066a7377 --- /dev/null +++ b/polystrap/default/hooks/serial_tty @@ -0,0 +1 @@ +echo "T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100" >> $ROOTDIR/etc/inittab diff --git a/polystrap/default/multistrap.conf b/polystrap/default/multistrap.conf new file mode 100644 index 000000000..e914a7b26 --- /dev/null +++ b/polystrap/default/multistrap.conf @@ -0,0 +1,22 @@ +[General] +arch=$ARCH +directory=$ROOTDIR +cleanup=true +unpack=true +noauth=true +bootstrap=Debian_bootstrap +aptsources=Debian +allowrecommends=false +addimportant=false + +[Debian_bootstrap] +packages=$PACKAGES +source=$MIRROR +suite=$SUITE +omitdebsrc=true + +[Debian] +source=http://cdn.debian.net/debian +keyring=debian-archive-keyring +suite=$SUITE +omitdebsrc=true diff --git a/polystrap/default/packages/audio b/polystrap/default/packages/audio new file mode 100644 index 000000000..0ee1b96c7 --- /dev/null +++ b/polystrap/default/packages/audio @@ -0,0 +1,5 @@ +alsa-base +alsa-utils +gstreamer-tools +gstreamer0.10-plugins-base +gstreamer0.10-plugins-good diff --git a/polystrap/default/packages/base b/polystrap/default/packages/base new file mode 100644 index 000000000..830cf70fa --- /dev/null +++ b/polystrap/default/packages/base @@ -0,0 +1,12 @@ +udev +kmod +apt +locales +procps +conspy +man-db +fbset +openssh-server +screen +less +vim diff --git a/polystrap/default/packages/bluez b/polystrap/default/packages/bluez new file mode 100644 index 000000000..5b306d277 --- /dev/null +++ b/polystrap/default/packages/bluez @@ -0,0 +1,4 @@ +bluez +bluez-utils +bluez-alsa +bluez-gstreamer diff --git a/polystrap/default/packages/games b/polystrap/default/packages/games new file mode 100644 index 000000000..ee469f878 --- /dev/null +++ b/polystrap/default/packages/games @@ -0,0 +1,4 @@ +numptyphysics +hex-a-hop +wesnoth +wesnoth-music diff --git a/polystrap/default/packages/net b/polystrap/default/packages/net new file mode 100644 index 000000000..87d45ae05 --- /dev/null +++ b/polystrap/default/packages/net @@ -0,0 +1,12 @@ +curl +wget +ntpdate +vpnc +rsync +dhcp3-client +ifupdown +net-tools +iproute +dnsutils +iputils-ping +ppp diff --git a/polystrap/default/packages/wlan b/polystrap/default/packages/wlan new file mode 100644 index 000000000..315290135 --- /dev/null +++ b/polystrap/default/packages/wlan @@ -0,0 +1,2 @@ +wireless-tools +wpasupplicant diff --git a/polystrap/default/packages/xorg b/polystrap/default/packages/xorg new file mode 100644 index 000000000..2b131f4e5 --- /dev/null +++ b/polystrap/default/packages/xorg @@ -0,0 +1,5 @@ +xserver-xorg-input-evdev +xserver-xorg +xserver-xorg-video-fbdev +xterm +nodm diff --git a/polystrap/default/root/etc/apt/apt.conf.d/99no-install-recommends b/polystrap/default/root/etc/apt/apt.conf.d/99no-install-recommends new file mode 100644 index 000000000..25ec2b3a4 --- /dev/null +++ b/polystrap/default/root/etc/apt/apt.conf.d/99no-install-recommends @@ -0,0 +1 @@ +APT::Install-Recommends "0"; diff --git a/polystrap/default/root/etc/apt/apt.conf.d/99no-pdiffs b/polystrap/default/root/etc/apt/apt.conf.d/99no-pdiffs new file mode 100644 index 000000000..07d01de1d --- /dev/null +++ b/polystrap/default/root/etc/apt/apt.conf.d/99no-pdiffs @@ -0,0 +1 @@ +Acquire::PDiffs "0"; diff --git a/polystrap/default/root/etc/fstab b/polystrap/default/root/etc/fstab new file mode 100644 index 000000000..a8fe557ac --- /dev/null +++ b/polystrap/default/root/etc/fstab @@ -0,0 +1,8 @@ +# <file system> <mount point> <type> <options> <dump> <pass> +rootfs / auto defaults,errors=remount-ro,noatime 0 1 +proc /proc proc defaults 0 0 +tmpfs /tmp tmpfs defaults,noatime 0 0 +tmpfs /var/lock tmpfs defaults,noatime 0 0 +tmpfs /var/run tmpfs defaults,noatime 0 0 +tmpfs /var/log tmpfs defaults,noatime 0 0 +tmpfs /etc/network/run tmpfs defaults,noatime 0 0 diff --git a/polystrap/default/root/etc/hostname b/polystrap/default/root/etc/hostname new file mode 100644 index 000000000..4ad96d515 --- /dev/null +++ b/polystrap/default/root/etc/hostname @@ -0,0 +1 @@ +default diff --git a/polystrap/default/root/etc/hosts b/polystrap/default/root/etc/hosts new file mode 100644 index 000000000..0ec197ba8 --- /dev/null +++ b/polystrap/default/root/etc/hosts @@ -0,0 +1,2 @@ +127.0.0.1 localhost +127.0.0.1 default diff --git a/polystrap/default/root/etc/ld.so.conf b/polystrap/default/root/etc/ld.so.conf new file mode 100644 index 000000000..a9d3ffcc7 --- /dev/null +++ b/polystrap/default/root/etc/ld.so.conf @@ -0,0 +1,2 @@ +# supply ld.so.conf for fake ldd (running libc6 postinst script will fail) +include /etc/ld.so.conf.d/*.conf diff --git a/polystrap/default/root/etc/network/interfaces b/polystrap/default/root/etc/network/interfaces new file mode 100644 index 000000000..f1bd92ed2 --- /dev/null +++ b/polystrap/default/root/etc/network/interfaces @@ -0,0 +1,2 @@ +auto lo +iface lo inet loopback diff --git a/polystrap/default/root/etc/ssh/ssh_host_dsa_key b/polystrap/default/root/etc/ssh/ssh_host_dsa_key new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/polystrap/default/root/etc/ssh/ssh_host_dsa_key diff --git a/polystrap/default/root/etc/ssh/ssh_host_ecdsa_key b/polystrap/default/root/etc/ssh/ssh_host_ecdsa_key new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/polystrap/default/root/etc/ssh/ssh_host_ecdsa_key diff --git a/polystrap/default/root/etc/ssh/ssh_host_rsa_key b/polystrap/default/root/etc/ssh/ssh_host_rsa_key new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/polystrap/default/root/etc/ssh/ssh_host_rsa_key diff --git a/polystrap/default/root/usr/sbin/policy-rc.d b/polystrap/default/root/usr/sbin/policy-rc.d new file mode 100755 index 000000000..85d823ddb --- /dev/null +++ b/polystrap/default/root/usr/sbin/policy-rc.d @@ -0,0 +1,3 @@ +#!/bin/sh +echo "sysvinit: All runlevel operations denied by policy" >&2 +exit 101 |