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-bootstrap/04-run.sh

29 lines
622 B
Bash
Raw Normal View History

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
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