This repository has been archived by the owner on Oct 26, 2019. It is now read-only.
forked from RPi-Distro/pi-gen
-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from Landrash/buster
Changes for building image on top Buster
- Loading branch information
Showing
12 changed files
with
63 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
deb http://archive.raspberrypi.org/debian/ stretch main ui staging | ||
deb http://archive.raspberrypi.org/debian/ buster main ui staging | ||
# Uncomment line below then 'apt-get update' to enable 'apt-get source' | ||
#deb-src http://archive.raspberrypi.org/debian/ stretch main ui | ||
#deb-src http://archive.raspberrypi.org/debian/ buster main ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi | ||
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi | ||
# Uncomment line below then 'apt-get update' to enable 'apt-get source' | ||
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi | ||
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash -e | ||
|
||
if [ ! -d "${ROOTFS_DIR}" ]; then | ||
bootstrap stretch "${ROOTFS_DIR}" http://raspbian.raspberrypi.org/raspbian/ | ||
bootstrap buster "${ROOTFS_DIR}" http://raspbian.raspberrypi.org/raspbian/ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
deb [trusted=yes] https://gitlab.com/hassbian/repository/raw/master stretch main | ||
deb [trusted=yes] https://gitlab.com/hassbian/repository/raw/master buster main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -e | ||
|
||
install -m 644 files/hassbian.list "${ROOTFS_DIR}/etc/apt/sources.list.d/" | ||
|
||
#on_chroot apt-key add - < files/hassbian.gpg.key | ||
|
||
on_chroot << EOF | ||
apt update | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
deb [trusted=yes] https://gitlab.com/hassbian/repository-dev/raw/master buster main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
git python3 python3-venv python3-pip bluetooth libbluetooth-dev rng-tools rpi-update htop tmux avahi-daemon libtool autoconf rfkill gvfs libssl-dev libffi-dev python-dev libudev-dev zip nodejs apt-transport-https bluez-hcidump bc figlet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash -e | ||
|
||
on_chroot << EOF | ||
groupadd -f -r -g 1001 homeassistant | ||
useradd -u 1001 -g 1001 -rm homeassistant | ||
EOF | ||
|
||
install -v -o 1001 -g 1001 -d ${ROOTFS_DIR}/srv/homeassistant | ||
|
||
on_chroot << \EOF | ||
apt install -f hassbian-scripts | ||
EOF | ||
|
||
on_chroot << EOF | ||
systemctl enable install_homeassistant | ||
EOF | ||
|
||
on_chroot << EOF | ||
sed -i 's/PrintMotd no/PrintMotd yes/' /etc/ssh/sshd_config | ||
rm /etc/update-motd.d/10-uname | ||
rm /etc/motd | ||
EOF | ||
|
||
on_chroot << \EOF | ||
for GRP in dialout gpio i2c input netdev spi video; do | ||
adduser homeassistant $GRP | ||
done | ||
for GRP in homeassistant; do | ||
adduser pi $GRP | ||
done | ||
EOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash -e | ||
|
||
on_chroot << EOF | ||
apt-get clean | ||
EOF |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash -e | ||
|
||
if [ ! -d "${ROOTFS_DIR}" ]; then | ||
copy_previous | ||
fi |