Skip to content

Commit 44adaf1

Browse files
authored
Merge pull request #1331 from kernelkit/support-test-update
Support test update
2 parents 4649324 + fb338ad commit 44adaf1

File tree

3 files changed

+10
-48
lines changed

3 files changed

+10
-48
lines changed

doc/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ All notable changes to the project are documented in this file.
2424

2525
### Fixes
2626

27-
N/A
27+
- Fix #1314: Raspberry Pi 4B with 1 or 8 GiB RAM does not boot. This was due
28+
newer EEPROM firmware in newer boards require a newer rpi-firmware package
2829

2930
[v25.11.0][] - 2025-12-02
3031
-------------------------

src/bin/support

Lines changed: 6 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,16 @@
11
#!/bin/sh
22
# Support utilities for troubleshooting Infix systems
3-
4-
# Program name for usage messages (supports being renamed by users)
5-
prognm=$(basename "$0")
6-
73
#
84
# The collect command gathers system information and outputs a tarball.
95
# Data is collected to /var/lib/support (or $HOME as fallback) and then
106
# streamed to stdout. The temporary directory is cleaned up automatically.
117
#
12-
# The following text is primarily intended for users of older Infix
13-
# systems that do not yet have this script in the root fileystems.
14-
#
15-
# 1. Copy this script to the target device's home directory:
16-
#
17-
# scp support user@device:
18-
#
19-
# 2. SSH to the device and make it executable:
20-
#
21-
# ssh user@device chmod +x support
22-
#
23-
# 3. Run the script from your home directory:
24-
#
25-
# ./support collect > support-data.tar.gz
26-
#
27-
# Or directly via SSH from your workstation:
28-
#
29-
# ssh user@device './support collect' > support-data.tar.gz
30-
#
31-
# Optionally, the output can be encrypted with GPG using a password for
32-
# secure transmission to support personnel, see below.
33-
#
34-
# Examples:
35-
# ./support collect > support-data.tar.gz
36-
# ./support collect -s 5 > support-data.tar.gz
37-
# ./support collect -p > support-data.tar.gz.gpg
38-
# ./support collect -p mypass > support-data.tar.gz.gpg
39-
#
40-
# ssh user@device ./support collect > support-data.tar.gz
41-
# ssh user@device ./support collect -p mypass > support-data.tar.gz.gpg
42-
#
43-
# Note, interactive password prompt (-p without argument) may echo characters
44-
# over SSH due to local terminal echo. Use -p PASSWORD for remote execution,
45-
# or pipe the password: echo "password" | ssh user@device ./support collect -p
46-
# meaning you can even: echo "$SECRET_VARIABLE" | ... which in some cases can
47-
# come in handy.
48-
#
49-
# TODO:
50-
# Add more commands, e.g., verify (run health checks), upload <file>,
51-
# test <network|disk|routing>, backup, watch (dashboard view), diff
8+
# See: 'support help' for more information.
529
#
10+
# <<< THIS SCRIPT REQUIRES SUDO TO COLLECT RELEVANT LOGS >>>
11+
12+
# Program name for usage messages (supports being renamed by users)
13+
prognm=$(basename "$0")
5314

5415
cmd_collect()
5516
{
@@ -564,7 +525,7 @@ usage()
564525
echo " sudo $prognm collect -p > support-data.tar.gz.gpg"
565526
echo " sudo $prognm collect --password mypass > support-data.tar.gz.gpg"
566527
echo " sudo $prognm --work-dir /tmp/ram collect > support-data.tar.gz"
567-
echo " ssh user@device 'sudo $prognm collect' > support-data.tar.gz"
528+
echo " ssh admin@device 'sudo $prognm collect' > support-data.tar.gz"
568529
echo " $prognm -u collect > support-data.tar.gz (degraded)"
569530
echo " sudo $prognm clean --dry-run"
570531
echo " sudo $prognm clean --days 30"

test/case/misc/support_collect/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# Note: timeout is generous to handle systems with many network ports
4040
# (ethtool collection scales with number of interfaces)
4141
with open(output_file, 'wb') as f:
42-
result = tgtssh.run("support --work-dir /tmp collect --log-sec 2",
42+
result = tgtssh.run("sudo support --work-dir /tmp collect --log-sec 2",
4343
stdout=f,
4444
stderr=subprocess.PIPE,
4545
timeout=120)
@@ -117,7 +117,7 @@
117117

118118
# Run support collect with encryption
119119
with open(encrypted_file, 'wb') as f:
120-
result = tgtssh.run(f"support --work-dir /tmp collect --log-sec 2 --password {test_password}",
120+
result = tgtssh.run(f"sudo support --work-dir /tmp collect --log-sec 2 --password {test_password}",
121121
stdout=f,
122122
stderr=subprocess.PIPE,
123123
timeout=120)

0 commit comments

Comments
 (0)