[Bug]: remove directories from sha files

Description

  1.  

    1.  

      1. What happened?

```

$ cat Armbian_23.8.1_Bananapim2plus_jammy_current_6.1.47_minimal.img.xz.sha
59a2f556f497bbe6a99f71a9a35736beadacaff495ab67fef198b799ba0b53d6 */armbian/.tmp/image-679d4d6c-dbbb-4915-ba5c-0f466f3924b9/Armbian_23.8.1_Bananapim2plus_jammy_current_6.1.47_minimal.img.xz
```

I think it would be better to remove the subdirectories from the publish sha files, either by switching first into the subdirectory before computing the sha256sum or after the creation via ```sed 's!*/armbian/\.tmp/!!'``` or something similar.

Am I correct to think the creation of the sha files happens via [lib/functions/general/hash-files.sh](../tree/main/lib/functions/general/hash-files.sh)?

  1.  

    1.  

      1. How to reproduce?

download and image and try to verify via sha256sum from the CLI

  1.  

    1.  

      1. Branch

main (main development branch)

  1.  

    1.  

      1. On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

  1.  

    1.  

      1. Are you building on Windows WSL2?

  • [ ] Yes, my Ubuntu/Debian/OtherOS is running on WSL2

  1.  

    1.  

      1. Relevant log URL

No response

  1.  

    1.  

      1. Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

Raised by: https://github.com/leggewie

https://github.com/armbian/build/issues/7731

Checklist

hide

Activity

Show:

Details

Assignee

Reporter

Priority

Created January 21, 2025 at 5:19 AM
Updated January 21, 2025 at 5:19 AM