-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes related to a new version of rbfeeder:armhf and some general cle…
…anup (#184) * use native on all arm archs, cleanup logging * fix - changelog.gz doesn't always exist * add check for CPU serial number (again required from rbfeeder 1.0.9) * doc update: ensure hexdump is installed when adding FakeCpuSerial * only explicitly load armhf packages when arch needs to be emulated * fix typo * only do `dpkg --add-architecture armhf` when really needed * remove i386 building from test builds * make checking for cpu serial case independent
- Loading branch information
Showing
10 changed files
with
110 additions
and
76 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
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,9 +1,10 @@ | ||
#!/usr/bin/env bash | ||
#shellcheck shell=bash disable=SC1091 | ||
|
||
white="\e[0;97m" | ||
reset="\e[0m" | ||
source /scripts/common | ||
s6wrap=(s6wrap --quiet --timestamps --prepend="$(basename "$0")" --args) | ||
|
||
# Show latest changelog | ||
echo -e "${white}" | ||
zcat /usr/share/doc/rbfeeder/changelog.gz | grep -B9999 -m 1 " -- " | ||
echo -e "${reset}" | ||
if [[ -e /usr/share/doc/rbfeeder/changelog.gz ]]; then | ||
"${s6wrap[@]}" zcat /usr/share/doc/rbfeeder/changelog.gz | grep -B9999 -m 1 " -- " | ||
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
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,11 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
white="\e[0;97m" | ||
reset="\e[0m" | ||
#shellcheck shell=bash disable=SC1091 | ||
|
||
echo -e "${white}" | ||
echo "Hardware information:" | ||
echo "Machine: $(uname -m)" | ||
echo "Processor: $(uname -p)" | ||
echo "Platform: $(uname -i)" | ||
echo -e "${reset}" | ||
source /scripts/common | ||
s6wrap=(s6wrap --quiet --timestamps --prepend="$(basename "$0")" --args) | ||
|
||
"${s6wrap[@]}" cat << EOM | ||
Hardware information: | ||
Machine: $(uname -m) | ||
Processor: $(uname -p) | ||
Platform: $(uname -i) | ||
EOM |
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,15 +1,16 @@ | ||
#!/command/with-contenv bash | ||
# shellcheck shell=bash | ||
#shellcheck shell=bash disable=SC1091 | ||
|
||
source /scripts/common | ||
s6wrap=(s6wrap --quiet --timestamps --prepend="$(basename "$0")" --args) | ||
|
||
set -eo pipefail | ||
|
||
# Don't continue if UAT_RECEIVER_HOST isn't set | ||
if [[ -z "$UAT_RECEIVER_HOST" ]]; then | ||
sleep 86400 | ||
exit 0 | ||
sleep infinity & wait $! | ||
else | ||
# shellcheck disable=SC2016 | ||
"${s6wrap[@]}" socat -d -d TCP-LISTEN:30979,fork TCP:"$UAT_RECEIVER_HOST":"${UAT_RECEIVER_PORT:-30979}" | ||
sleep 5 | ||
fi | ||
|
||
# shellcheck disable=SC2016 | ||
socat -d -d TCP-LISTEN:30979,fork TCP:"$UAT_RECEIVER_HOST":"${UAT_RECEIVER_PORT:-30979}" \ | ||
2>&1 | awk '{print "[978json-splitter] " $0}' | ||
|
||
sleep 5 |
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,17 +1,20 @@ | ||
#!/usr/bin/env bash | ||
# shellcheck shell=bash disable=SC1091 | ||
|
||
# This wrapper file will determine how to run rbfeeder, either natively or via qemu-arm-static. | ||
# All command line arguments passed to this script will be passed directly to rbfeeder_armhf. | ||
|
||
source /scripts/common | ||
s6wrap=(s6wrap --quiet --timestamps --prepend="$(basename "$0")" --args) | ||
|
||
# attempt to run natively | ||
if /usr/bin/rbfeeder_armhf --no-start --version > /dev/null 2>&1; then | ||
/usr/bin/rbfeeder_armhf "$@" | ||
if /usr/bin/rbfeeder_arm --no-start --version >/dev/null 2>&1; then | ||
/usr/bin/rbfeeder_arm "$@" | ||
|
||
elif qemu-arm-static /usr/bin/rbfeeder_armhf --no-start --version > /dev/null 2>&1; then | ||
qemu-arm-static /usr/bin/rbfeeder_armhf "$@" | ||
elif qemu-arm-static /usr/bin/rbfeeder_arm --no-start --version >/dev/null 2>&1; then | ||
qemu-arm-static /usr/bin/rbfeeder_arm "$@" | ||
|
||
else | ||
>&2 echo "ERROR: Could not run rbfeeder natively or via qemu" | ||
sleep 3600 | ||
|
||
"${s6wrap[@]}" echo "[ERROR] Could not run rbfeeder natively or via qemu" | ||
sleep infinity & wait $! | ||
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