forked from RPi-Distro/pi-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upstream: stage2: install raspinfo Add new changelog entry Update release notes Bookshelf PDF download Exposed RELEASE as a configurable variable (RPi-Distro#391) Dockerfile: use --no-install-recommends in apt-get install (RPi-Distro#383) BusyBox realpath does not support -s flag, fallback to use no flags (RPi-Distro#384) Retry apt downloads 3 times Update release notes Update release notes Update release notes Update release notes Update release notes Update release notes Update persistent rkfill files Update MagPi URL scheme stage5: install code-the-classics Update ROOT_MARGIN Rename HOSTNAME variable to TARGET_HOSTNAME
- Loading branch information
Showing
20 changed files
with
110 additions
and
34 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 |
---|---|---|
|
@@ -28,7 +28,6 @@ FIRST_USER_PASS="********" | |
Config written to ./config | ||
Skipping stage3 to stage 5 | ||
``` | ||
|
||
## Usage | ||
|
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
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ xxd | |
file | ||
git | ||
lsmod:kmod | ||
bc |
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
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 |
---|---|---|
|
@@ -16,5 +16,5 @@ | |
], | ||
"url": "http://www.raspbian.org/", | ||
"username": "pi", | ||
"version": "buster" | ||
"version": "RELEASE" | ||
} |
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
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/ buster main | ||
deb http://archive.raspberrypi.org/debian/ RELEASE main | ||
# Uncomment line below then 'apt-get update' to enable 'apt-get source' | ||
#deb-src http://archive.raspberrypi.org/debian/ buster main | ||
#deb-src http://archive.raspberrypi.org/debian/ RELEASE 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi | ||
deb http://raspbian.raspberrypi.org/raspbian/ RELEASE main contrib non-free rpi | ||
# Uncomment line below then 'apt-get update' to enable 'apt-get source' | ||
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi | ||
#deb-src http://raspbian.raspberrypi.org/raspbian/ RELEASE 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 buster "${ROOTFS_DIR}" http://raspbian.raspberrypi.org/raspbian/ | ||
bootstrap ${RELEASE} "${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,6 +1,6 @@ | ||
#!/bin/bash -e | ||
|
||
echo "${HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname" | ||
echo "127.0.1.1 ${HOSTNAME}" >> "${ROOTFS_DIR}/etc/hosts" | ||
echo "${TARGET_HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname" | ||
echo "127.0.1.1 ${TARGET_HOSTNAME}" >> "${ROOTFS_DIR}/etc/hosts" | ||
|
||
ln -sf /dev/null "${ROOTFS_DIR}/etc/systemd/network/99-default.link" |
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 |
---|---|---|
|
@@ -28,3 +28,4 @@ vl805fw | |
ntfs-3g | ||
pciutils | ||
rpi-eeprom | ||
raspinfo |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh -e | ||
|
||
BOOKSHELF_URL="https://magpi.raspberrypi.org/bookshelf.xml" | ||
GUIDE_URL="$(curl -s "$BOOKSHELF_URL" | awk -F '[<>]' "/<TITLE>Raspberry Pi Beginner's Guide v3<\/TITLE>/ {f=1; next} f==1 && /PDF/ {print \$3; exit}")" | ||
OUTPUT="$(basename "$GUIDE_URL" | cut -f1 -d'?')" | ||
|
||
if [ ! -f "files/$OUTPUT" ]; then | ||
rm files/*.pdf -f | ||
curl -s "$GUIDE_URL" -o "files/$OUTPUT" | ||
fi | ||
|
||
file "files/$OUTPUT" | grep -q "PDF document" | ||
|
||
install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Bookshelf" | ||
install -v -o 1000 -g 1000 -m 644 "files/$OUTPUT" "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Bookshelf/" |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ nodered | |
realvnc-vnc-viewer | ||
|
||
python-games | ||
code-the-classics |