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

Commit 0c51c2d

Browse files
authored
Merge pull request #35 from RPi-Distro/master
Catch up to pi-gen
2 parents 320b358 + 8acf95f commit 0c51c2d

7 files changed

Lines changed: 44 additions & 30 deletions

File tree

build-docker.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fi
1515
set -e
1616

1717
if [ -f config ]; then
18+
# shellcheck disable=SC1091
1819
source config
1920
fi
2021

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ if [[ ! "$FIRST_USER_NAME" =~ ^[a-z][-a-z0-9_]*$ ]]; then
203203
exit 1
204204
fi
205205

206-
if [[ -n "${APT_PROXY}" ]] && ! curl --silent ${APT_PROXY} >/dev/null ; then
207-
echo "Could not reach APT_PROXY server:" ${APT_PROXY}
206+
if [[ -n "${APT_PROXY}" ]] && ! curl --silent "${APT_PROXY}" >/dev/null ; then
207+
echo "Could not reach APT_PROXY server: ${APT_PROXY}"
208208
exit 1
209209
fi
210210

export-image/04-finalise/01-run.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,19 @@ cp "$ROOTFS_DIR/etc/rpi-issue" "$INFO_FILE"
5050

5151

5252
{
53-
firmware=$(zgrep "firmware as of" \
54-
"$ROOTFS_DIR/usr/share/doc/raspberrypi-kernel/changelog.Debian.gz" | \
55-
head -n1 | sed -n 's|.* \([^ ]*\)$|\1|p')
56-
printf "\nFirmware: https://github.com/raspberrypi/firmware/tree/%s\n" "$firmware"
53+
if [ -f "$ROOTFS_DIR/usr/share/doc/raspberrypi-kernel/changelog.Debian.gz" ]; then
54+
firmware=$(zgrep "firmware as of" \
55+
"$ROOTFS_DIR/usr/share/doc/raspberrypi-kernel/changelog.Debian.gz" | \
56+
head -n1 | sed -n 's|.* \([^ ]*\)$|\1|p')
57+
printf "\nFirmware: https://github.com/raspberrypi/firmware/tree/%s\n" "$firmware"
5758

58-
kernel="$(curl -s -L "https://github.com/raspberrypi/firmware/raw/$firmware/extra/git_hash")"
59-
printf "Kernel: https://github.com/raspberrypi/linux/tree/%s\n" "$kernel"
59+
kernel="$(curl -s -L "https://github.com/raspberrypi/firmware/raw/$firmware/extra/git_hash")"
60+
printf "Kernel: https://github.com/raspberrypi/linux/tree/%s\n" "$kernel"
6061

61-
uname="$(curl -s -L "https://github.com/raspberrypi/firmware/raw/$firmware/extra/uname_string7")"
62+
uname="$(curl -s -L "https://github.com/raspberrypi/firmware/raw/$firmware/extra/uname_string7")"
63+
printf "Uname string: %s\n" "$uname"
64+
fi
6265

63-
printf "Uname string: %s\n" "$uname"
6466
printf "\nPackages:\n"
6567
dpkg -l --root "$ROOTFS_DIR"
6668
} >> "$INFO_FILE"

export-image/prerun.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,12 @@ p
3737
w
3838
EOF
3939

40-
PARTED_OUT=$(parted -s "${IMG_FILE}" unit b print)
41-
BOOT_OFFSET=$(echo "$PARTED_OUT" | grep -e '^ 1'| xargs echo -n \
42-
| cut -d" " -f 2 | tr -d B)
43-
BOOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^ 1'| xargs echo -n \
44-
| cut -d" " -f 4 | tr -d B)
45-
46-
ROOT_OFFSET=$(echo "$PARTED_OUT" | grep -e '^ 2'| xargs echo -n \
47-
| cut -d" " -f 2 | tr -d B)
48-
ROOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^ 2'| xargs echo -n \
49-
| cut -d" " -f 4 | tr -d B)
40+
PARTED_OUT=$(parted -sm "${IMG_FILE}" unit b print)
41+
BOOT_OFFSET=$(echo "$PARTED_OUT" | grep -e '^1:' | cut -d':' -f 2 | tr -d B)
42+
BOOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^1:' | cut -d':' -f 4 | tr -d B)
43+
44+
ROOT_OFFSET=$(echo "$PARTED_OUT" | grep -e '^2:' | cut -d':' -f 2 | tr -d B)
45+
ROOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^2:' | cut -d':' -f 4 | tr -d B)
5046

5147
BOOT_DEV=$(losetup --show -f -o "${BOOT_OFFSET}" --sizelimit "${BOOT_LENGTH}" "${IMG_FILE}")
5248
ROOT_DEV=$(losetup --show -f -o "${ROOT_OFFSET}" --sizelimit "${ROOT_LENGTH}" "${IMG_FILE}")

export-noobs/00-release/files/release_notes.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
UNRELEASED:
22
*
3+
2019-04-08:
4+
* Chromium browser updated to version 72
5+
* VLC media player updated to version 3.0.6
6+
* RealVNC Server updated to version 6.4.0
7+
* Flash player updated to version 32.0.0.156
8+
* Performance improvements to SDL library
9+
* Performance improvements to pixman library
10+
* Option to set display underscan added to startup wizard
11+
* Mounted external drives now displayed on desktop by default
12+
* Network plugin modified for improved compatibility with wpa_passphrase
13+
* SD Card Copier tweaks to reduce copy failures
14+
* Various minor bug fixes and appearance tweaks
15+
* Added ethtool
16+
* Added rng-tools
17+
* Add PINN restore support
18+
* Linux kernel 4.14.98
19+
* Raspberry Pi firmware f8939644f7bd3065068787f1f92b3f3c79cf3de9
320
2018-11-13:
421
* Two versions of image created - "base" image has no optional software packages included; "full" image has all optional packages
522
- Removed from "base" image - LibreOffice, Thonny, Scratch, Scratch 2, Sonic Pi, Minecraft, Python Games, SmartSim, SenseHAT Emulator

export-noobs/prerun.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ cp "${WORK_DIR}/export-image/${IMG_FILENAME}${IMG_SUFFIX}.img" "${STAGE_WORK_DIR
99

1010
rm -rf "${NOOBS_DIR}"
1111

12-
PARTED_OUT=$(parted -s "${IMG_FILE}" unit b print)
13-
BOOT_OFFSET=$(echo "$PARTED_OUT" | grep -e '^ 1'| xargs echo -n \
14-
| cut -d" " -f 2 | tr -d B)
15-
BOOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^ 1'| xargs echo -n \
16-
| cut -d" " -f 4 | tr -d B)
17-
18-
ROOT_OFFSET=$(echo "$PARTED_OUT" | grep -e '^ 2'| xargs echo -n \
19-
| cut -d" " -f 2 | tr -d B)
20-
ROOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^ 2'| xargs echo -n \
21-
| cut -d" " -f 4 | tr -d B)
12+
PARTED_OUT=$(parted -sm "${IMG_FILE}" unit b print)
13+
BOOT_OFFSET=$(echo "$PARTED_OUT" | grep -e '^1:' | cut -d':' -f 2 | tr -d B)
14+
BOOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^1:' | cut -d':' -f 4 | tr -d B)
15+
16+
ROOT_OFFSET=$(echo "$PARTED_OUT" | grep -e '^2:' | cut -d':' -f 2 | tr -d B)
17+
ROOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^2:' | cut -d':' -f 4 | tr -d B)
2218

2319
BOOT_DEV=$(losetup --show -f -o "${BOOT_OFFSET}" --sizelimit "${BOOT_LENGTH}" "${IMG_FILE}")
2420
ROOT_DEV=$(losetup --show -f -o "${ROOT_OFFSET}" --sizelimit "${ROOT_LENGTH}" "${IMG_FILE}")

stage2/01-sys-tweaks/00-packages

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ htop
2323
man-db
2424
policykit-1
2525
ssh-import-id
26+
rng-tools
27+
ethtool

0 commit comments

Comments
 (0)