Skip to content

Conversation

@tohojo
Copy link
Contributor

@tohojo tohojo commented Nov 26, 2025

Maintainer: me
Compile tested: not yet
Run tested: no

Description:

To prevent birdc writing its history file to /root, causing flash wear,
apply a patch that moves the history file to /var/tmp instead.

Fixes #1137.

@rwalli
Copy link

rwalli commented Dec 4, 2025

what is needed for testing?

did a short test for "aarch64_cortex-a53 ":

apk add /tmp/bird2c-2.17.2-r2.apk --allow-untrusted
(1/1) Upgrading bird2c (2.17.2-r1 -> 2.17.2-r2)
bird2c-2.17.2-r2.post-upgrade: Executing script...
OK: 29 MiB in 178 packages

birdc
BIRD 2.17.2 ready.
bird> show ospf neighbors 

cat /var/tmp/.birdc_history
show ospf neighbors 

@tohojo
Copy link
Contributor Author

tohojo commented Dec 5, 2025

That looks good as far as testing is concerned, thanks! I just need to figure out why the CI complains about the patch; I take it you didn't have any issues building the package?

@PolynomialDivision
Copy link
Member

That looks good as far as testing is concerned, thanks! I just need to figure out why the CI complains about the patch; I take it you didn't have any issues building the package?

Just do a make package/bird2/refresh, that should fix it?

@rwalli
Copy link

rwalli commented Dec 5, 2025

didn't have any issues building the package?

no issues.
extracted from my history:

git clone https://github.com/openwrt/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
cd feeds/routing
git fetch origin pull/1148/head:pr-1148
git checkout pr-1148
cd ../../
./scripts/feeds install -a -p routing
make package/bird2/{clean,compile} V=sc

@tohojo tohojo force-pushed the bird-updates branch 2 times, most recently from e894249 to d54e97b Compare December 23, 2025 19:42
To prevent birdc writing its history file to /root, causing flash wear,
apply a patch that moves the history file to /var/tmp instead.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
To prevent birdc writing its history file to /root, causing flash wear,
apply a patch that moves the history file to /var/tmp instead.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
@tohojo tohojo merged commit c69a11d into openwrt:master Dec 23, 2025
10 of 11 checks passed
@tohojo tohojo deleted the bird-updates branch December 23, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bird2: birdc writes history in homedir (/root)

3 participants