Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Commit 9ecf3cc

Browse files
authored
Merge pull request #36 from Landrash/buster
Changes for building image on top Buster
2 parents 0c51c2d + 798b405 commit 9ecf3cc

12 files changed

Lines changed: 63 additions & 9 deletions

File tree

export-image/01-set-sources/00-patches/0-sources.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Index: export-jessie/rootfs/etc/apt/sources.list.d/raspi.list
33
--- export-jessie.orig/rootfs/etc/apt/sources.list.d/raspi.list
44
+++ export-jessie/rootfs/etc/apt/sources.list.d/raspi.list
55
@@ -1,3 +1,3 @@
6-
-deb http://archive.raspberrypi.org/debian/ stretch main ui staging
7-
+deb http://archive.raspberrypi.org/debian/ stretch main ui
6+
-deb http://archive.raspberrypi.org/debian/ buster main ui staging
7+
+deb http://archive.raspberrypi.org/debian/ buster main ui
88
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
9-
#deb-src http://archive.raspberrypi.org/debian/ stretch main ui
9+
#deb-src http://archive.raspberrypi.org/debian/ buster main ui
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
deb http://archive.raspberrypi.org/debian/ stretch main ui staging
1+
deb http://archive.raspberrypi.org/debian/ buster main ui staging
22
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
3-
#deb-src http://archive.raspberrypi.org/debian/ stretch main ui
3+
#deb-src http://archive.raspberrypi.org/debian/ buster main ui
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
1+
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
22
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
3-
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
3+
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

stage0/prerun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash -e
22

33
if [ ! -d "${ROOTFS_DIR}" ]; then
4-
bootstrap stretch "${ROOTFS_DIR}" http://raspbian.raspberrypi.org/raspbian/
4+
bootstrap buster "${ROOTFS_DIR}" http://raspbian.raspberrypi.org/raspbian/
55
fi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
deb [trusted=yes] https://gitlab.com/hassbian/repository/raw/master stretch main
1+
deb [trusted=yes] https://gitlab.com/hassbian/repository/raw/master buster main

stage4/00-hassbian-repo/00-run.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash -e
2+
3+
install -m 644 files/hassbian.list "${ROOTFS_DIR}/etc/apt/sources.list.d/"
4+
5+
#on_chroot apt-key add - < files/hassbian.gpg.key
6+
7+
on_chroot << EOF
8+
apt update
9+
EOF
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
deb [trusted=yes] https://gitlab.com/hassbian/repository-dev/raw/master buster main
2+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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

stage4/02-tweaks/00-run.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash -e
2+
3+
on_chroot << EOF
4+
groupadd -f -r -g 1001 homeassistant
5+
useradd -u 1001 -g 1001 -rm homeassistant
6+
EOF
7+
8+
install -v -o 1001 -g 1001 -d ${ROOTFS_DIR}/srv/homeassistant
9+
10+
on_chroot << \EOF
11+
apt install -f hassbian-scripts
12+
EOF
13+
14+
on_chroot << EOF
15+
systemctl enable install_homeassistant
16+
EOF
17+
18+
on_chroot << EOF
19+
sed -i 's/PrintMotd no/PrintMotd yes/' /etc/ssh/sshd_config
20+
rm /etc/update-motd.d/10-uname
21+
rm /etc/motd
22+
EOF
23+
24+
on_chroot << \EOF
25+
for GRP in dialout gpio i2c input netdev spi video; do
26+
adduser homeassistant $GRP
27+
done
28+
for GRP in homeassistant; do
29+
adduser pi $GRP
30+
done
31+
EOF
32+

stage4/03-cleanup/00-run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash -e
2+
3+
on_chroot << EOF
4+
apt-get clean
5+
EOF

0 commit comments

Comments
 (0)