1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
raspberrypi-build/stage0/00-substage/04-run.sh
2017-07-02 23:42:50 +00:00

48 lines
1.4 KiB
Bash
Executable file

#!/bin/bash -e
install -m 644 files/ipv6.conf "$ROOTFS_DIR/etc/modprobe.d/ipv6.conf"
install -m 644 files/interfaces "$ROOTFS_DIR/etc/network/interfaces"
echo $HOSTNAME > "$ROOTFS_DIR/etc/hostname"
chmod 644 "$ROOTFS_DIR/etc/hostname"
echo "127.0.1.1 $HOSTNAME" >>/etc/hosts
on_chroot << EOF
dpkg-divert --add --local /lib/udev/rules.d/75-persistent-net-generator.rules
EOF
on_chroot << EOF
apt-get install -y \
libraspberrypi-bin \
libraspberrypi0 \
raspi-config
EOF
touch ${ROOTFS_DIR}/spindle_install
on_chroot << EOF
apt-get install -y raspi-copies-and-fills
EOF
rm -f ${ROOTFS_DIR}/spindle_install
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