From 5456c3801fc7ef99d1563cd54e581cb9b3d54c4a Mon Sep 17 00:00:00 2001 From: Leander Date: Tue, 26 Nov 2019 16:03:48 +0100 Subject: [PATCH 1/4] Explicitly check if postrun script exists in BASE_DIR (#351) --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b806562..a396b06 100755 --- a/build.sh +++ b/build.sh @@ -247,7 +247,7 @@ for EXPORT_DIR in ${EXPORT_DIRS}; do fi done -if [ -x postrun.sh ]; then +if [ -x ${BASE_DIR}/postrun.sh ]; then log "Begin postrun.sh" cd "${BASE_DIR}" ./postrun.sh From d7c1ae21cafc0fd32a907db7de2b9c13ef12d76f Mon Sep 17 00:00:00 2001 From: RaspberryPiFan <49343974+RaspberryPiFan@users.noreply.github.com> Date: Tue, 26 Nov 2019 16:49:49 +0100 Subject: [PATCH 2/4] New types of images. (#352) --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e131ca4..7a272f1 100644 --- a/README.md +++ b/README.md @@ -277,14 +277,13 @@ maintenance and allows for more easy customization. enhancements, etc. This is a base desktop system, with some development tools installed. - - **Stage 4** - Raspbian system meant to fit on a 4GB card. More development + - **Stage 4** - Normal Raspbian image. System meant to fit on a 4GB card. More development tools, an email client, learning tools like Scratch, specialized packages like sonic-pi, system documentation, office productivity, etc. This is the stage that installs all of the things that make Raspbian friendly to new users. - - **Stage 5** - The official Raspbian Desktop image. Right now only adds - Mathematica. + - **Stage 5** - The Raspbian Full image. ### Stage specification From 8bdbbfb099ecac884a901572d126b0fe47de5d95 Mon Sep 17 00:00:00 2001 From: RaspberryPiFan <49343974+RaspberryPiFan@users.noreply.github.com> Date: Wed, 27 Nov 2019 17:11:20 +0100 Subject: [PATCH 3/4] Added stage 5 to the text (#353) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a272f1..83dd2ad 100644 --- a/README.md +++ b/README.md @@ -291,7 +291,7 @@ If you wish to build up to a specified stage (such as building up to stage 2 for a lite system), place an empty file named `SKIP` in each of the `./stage` directories you wish not to include. -Then add an empty file named `SKIP_IMAGES` to `./stage4` (if building up to stage 2) or +Then add an empty file named `SKIP_IMAGES` to `./stage4` and `./stage5` (if building up to stage 2) or to `./stage2` (if building a minimal system). ```bash From 18c3cebe94c99daf80dcdeaa8bc0f9202de3a943 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 5 Dec 2019 16:08:04 +0100 Subject: [PATCH 4/4] configure unprotected wifi when WPA_PASSWORD is unset (#357) --- README.md | 2 +- stage2/02-net-tweaks/01-run.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 83dd2ad..7ad31db 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ The following environment variables are supported: * `WPA_ESSID`, `WPA_PASSWORD` and `WPA_COUNTRY` (Default: unset) - If these are set, they are use to configure `wpa_supplicant.conf`, so that the raspberry pi can automatically connect to a wifi network on first boot. + If these are set, they are use to configure `wpa_supplicant.conf`, so that the raspberry pi can automatically connect to a wifi network on first boot. If `WPA_ESSID` is set and `WPA_PASSWORD` is unset an unprotected wifi network will be configured. * `ENABLE_SSH` (Default: `0`) diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh index 3ba2ef9..154e515 100755 --- a/stage2/02-net-tweaks/01-run.sh +++ b/stage2/02-net-tweaks/01-run.sh @@ -14,6 +14,14 @@ if [ -v WPA_ESSID ] && [ -v WPA_PASSWORD ]; then on_chroot <> "/etc/wpa_supplicant/wpa_supplicant.conf" EOF +elif [ -v WPA_ESSID ]; then +cat >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf" << EOL + +network={ + ssid="${WPA_ESSID}" + key_mgmt=NONE +} +EOL fi # Disable wifi on 5GHz models