2016-04-11 07:29:41 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2017-07-02 21:34:50 +00:00
|
|
|
install -m 644 files/ipv6.conf "$ROOTFS_DIR/etc/modprobe.d/ipv6.conf"
|
|
|
|
install -m 644 files/interfaces "$ROOTFS_DIR/etc/network/interfaces"
|
2017-07-01 01:33:24 +00:00
|
|
|
|
2017-07-02 21:34:50 +00:00
|
|
|
echo $HOSTNAME > "$ROOTFS_DIR/etc/hostname"
|
|
|
|
chmod 644 "$ROOTFS_DIR/etc/hostname"
|
2016-04-11 07:29:41 +01:00
|
|
|
|
2017-07-02 15:08:24 +00:00
|
|
|
echo "127.0.1.1 $HOSTNAME" >>/etc/hosts
|
|
|
|
|
2016-11-14 23:55:45 +00:00
|
|
|
on_chroot << EOF
|
2016-04-11 07:29:41 +01:00
|
|
|
dpkg-divert --add --local /lib/udev/rules.d/75-persistent-net-generator.rules
|
|
|
|
EOF
|
2017-07-02 22:30:10 +00:00
|
|
|
|
|
|
|
on_chroot << EOF
|
|
|
|
apt-get install -y \
|
|
|
|
libraspberrypi-bin \
|
|
|
|
libraspberrypi0 \
|
|
|
|
raspi-config
|
|
|
|
EOF
|
2017-07-02 23:01:46 +00:00
|
|
|
|
|
|
|
touch ${ROOTFS_DIR}/spindle_install
|
|
|
|
|
|
|
|
on_chroot << EOF
|
|
|
|
apt-get install -y raspi-copies-and-fills
|
|
|
|
EOF
|
|
|
|
|
|
|
|
rm -f ${ROOTFS_DIR}/spindle_install
|
2017-07-02 23:40:57 +00:00
|
|
|
|
|
|
|
on_chroot << EOF
|
|
|
|
debconf-set-selections <<SELEOF
|
|
|
|
|
|
|
|
console-setup console-setup/charmap47 select UTF-8
|
|
|
|
console-setup console-setup/codeset47 select Guess optimal character set
|
|
|
|
console-setup console-setup/fontface47 select Do not change the boot/kernel font
|
|
|
|
|
|
|
|
tzdata tzdata/Areas select Etc
|
|
|
|
tzdata tzdata/Zones/Etc select UTC
|
|
|
|
|
|
|
|
keyboard-configuration keyboard-configuration/altgr select The default for the keyboard layout
|
|
|
|
keyboard-configuration keyboard-configuration/model select Generic 105-key (Intl) PC
|
|
|
|
keyboard-configuration keyboard-configuration/xkb-keymap select gb
|
|
|
|
keyboard-configuration keyboard-configuration/compose select No compose key
|
|
|
|
keyboard-configuration keyboard-configuration/ctrl_alt_bksp boolean true
|
|
|
|
keyboard-configuration keyboard-configuration/variant select English (UK)
|
|
|
|
|
|
|
|
SELEOF
|
|
|
|
EOF
|
2017-07-02 23:43:44 +00:00
|
|
|
|
|
|
|
on_chroot << EOF
|
|
|
|
apt-get install -y \
|
|
|
|
ssh \
|
|
|
|
less \
|
|
|
|
fbset \
|
|
|
|
sudo \
|
|
|
|
psmisc \
|
|
|
|
strace \
|
|
|
|
module-init-tools \
|
|
|
|
ed \
|
|
|
|
ncdu \
|
|
|
|
crda \
|
|
|
|
console-setup \
|
|
|
|
keyboard-configuration \
|
|
|
|
debconf-utils \
|
|
|
|
parted \
|
|
|
|
unzip \
|
|
|
|
manpages-dev \
|
|
|
|
bash-completion \
|
|
|
|
gdb \
|
|
|
|
pkg-config \
|
|
|
|
v4l-utils \
|
|
|
|
avahi-daemon \
|
|
|
|
hardlink \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
fake-hwclock \
|
|
|
|
ntp \
|
|
|
|
usbutils \
|
|
|
|
libraspberrypi-dev \
|
|
|
|
libraspberrypi-doc \
|
|
|
|
libfreetype6-dev \
|
|
|
|
dosfstools \
|
|
|
|
dphys-swapfile \
|
|
|
|
raspberrypi-sys-mods \
|
|
|
|
apt-listchanges \
|
|
|
|
usb-modeswitch \
|
|
|
|
apt-transport-https \
|
|
|
|
libpam-chksshpwd
|
|
|
|
EOF
|
|
|
|
|
|
|
|
on_chroot << EOF
|
|
|
|
apt-get install --no-install-recommends -y cifs-utils
|
|
|
|
EOF
|