Skip to content

[Deepin Integration]~[v25-Release] fix: avoid postinst cp failure when motd files are hard links by Zeno-sole@deepin-community/base-files by deepin-community-ci-bot[bot] #13864

Description

@deepin-bot

Package information | 软件包信息

包名 版本
base-files 25-6deepin6

Package repository address | 软件包仓库地址

deb [trusted=yes] https://ci.deepin.com/repo/obs/deepin:/CI:/TestingIntegration:/test-integration-pr-4494/testing/ ./

Changelog | 更新信息

base-files (25-6deepin6) unstable; urgency=medium

  • Fix postinst cp failure when motd files are hard links
    • cp -p /usr/share/base-files/motd /etc/motd fails with "are the same
      file" when ostree checkout hard-links the two files because their
      content hashes are identical
    • Use cp -p --remove-destination so the copy succeeds and breaks the
      hard link
    • Honor DPKG_ROOT for chroot installs
  • Only run the motd copy during configure (install or upgrade), not on
    triggers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status
已集成

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions