openwrt / openwrt/packages

frr: initscript script "source" causes errors in imagebuilder

Open
#26,837 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

frr

Maintainer

@lucize

OpenWrt Version

24.10.2

OpenWrt Target/Subtarget

any/all

Steps to Reproduce

Build an image using the imagebuilder that includes the frr package.

Actual Behaviour

Error messages are emitted during the image bulid:

…
Finalizing root filesystem...
/home/brian/openwrt-imagebuilder-24.10.2-ath79-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ath79/etc/init.d/frr: line 21: /usr/sbin/frrcommon.sh: No such file or directory
Enabling boot
Enabling boot.sav
Enabling bootcount
Enabling cron
Enabling done
Enabling dropbear
./etc/init.d/frr: line 21: /usr/sbin/frrcommon.sh: No such file or directory
Enabling frr
Enabling gpio_switch
Enabling led
Enabling log
Enabling network
…

So it seems that a package's initscript is actually executed as part of building an image given the above. It seems that initscripts need to be aware of this and act accordingly.

Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the generated etc/init.d/frr mentioned in the report and trace it back to the frr package source, focusing on line 21 and the reference to /usr/sbin/frrcommon.sh. Reproduce an imagebuilder build that includes frr and verify that finalization completes without the missing-file error.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.