Skip to content

Conversation

@feckert
Copy link
Member

@feckert feckert commented Feb 3, 2026

📦 Package Details

Maintainer: @me
Description:
Fixes: #28377
For reasons that have not been investigated in detail, the package blocks during 'postinst' with the new 'apk' backend when the package is installed on the target. Deleting this script call '/etc/init.d/ddns start' in postinst solves the problem for apk. This was not observed in the OPKG backend.

Unfortunately, I do not know what side effect this change will have. I never install the package afterwards.


🧪 Run Testing Details

  • OpenWrt Version: master
  • OpenWrt Target/Subtarget: no
  • OpenWrt Device: no

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

@GeorgeSapkin
Copy link
Member

Isn't enabling and starting all services the default behavior? Why is that code even there?

@feckert
Copy link
Member Author

feckert commented Feb 3, 2026

You're right. But that's always been the case with this package.
I suspect it's because it doesn't use PROCD yet?
My suggestion was to remove everything, but @languagegame said it would be enough to just remove the start for him.

I'm not installing the package. I have my own images and therefore don't want to deal with it in detail right now,
As it concerns openwrt-25.12 and I would like to have the issue fixed so that the user doesn't have any problems.

@feckert feckert force-pushed the pr/20260126-ddns-scripts branch 2 times, most recently from b820d1a to 7065371 Compare February 4, 2026 09:34
@feckert
Copy link
Member Author

feckert commented Feb 4, 2026

@languagegame Can someone please test this again? From my point of view, as described in the commit, the whole postinst and prerm is not necessary.

For reasons that have not been investigated in detail, the package blocks
during 'postinst' with the new 'apk' backend when the package is installed
on the target.

After much back and forth, it turned out that the '/etc/init.d/ddns start'
command is responsible for this. The call is blocking.

The command '/etc/init.d/ddns enabled' in the 'postinst' also makes no sense
here, as it only checks whether the ddns service is enabled. The return value
is not checked at all. And the 'prerm' script is also not needed, as the
calls made there are implicitly called during package deinstallation.

Therefore, this commit removes the entire and not needed 'postinst' and
'prerm' script call.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
@feckert feckert force-pushed the pr/20260126-ddns-scripts branch from 7065371 to c75f347 Compare February 9, 2026 13:28
@feckert feckert merged commit 34d0684 into openwrt:master Feb 9, 2026
2 checks passed
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.

ddns-scripts: apk add ddns-scripts hangs on sysupgrade on 25.12.0_rc2 at postinstall script

3 participants