Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a multiple partition system #13

Open
mumrau opened this issue Jan 25, 2021 · 3 comments
Open

Support a multiple partition system #13

mumrau opened this issue Jan 25, 2021 · 3 comments

Comments

@mumrau
Copy link

mumrau commented Jan 25, 2021

Hello.

My pi uses an external usb drive as the main drive, which is partitioned in 3 partitions, respectively mounted in / /home and /opt.
The installation of the .deb file fails due to:
error creating hard link './opt/Cooler Master Pi Tool/public/cm_logo_outline.png': Invalid cross-device link
I've tried placing the .deb file in every partition but it just doesn't do the trick, I suspect the creation of a hardlink is responsible in between /usr/bin/pi-something and /opt/Cooler Master Stuff/etc.

It would be great to fix this as it probably is not an uncommon setup, and I am wondering the reason behind the usage of hardlinking in our case, especially directly in the dpkg process.

Thanks.

EDIT: More logs:

Get:1 /tmp/pi-tool.deb pi-tool armhf 0.3.1 [71,5 MB]
(Reading database ... 159764 files and directories currently installed.)
Preparing to unpack /tmp/pi-tool.deb ...
Unpacking pi-tool (0.3.1) ...
dpkg: error processing archive /tmp/pi-tool.deb (--unpack):
 error creating hard link './opt/Cooler Master Pi Tool/public/cm_logo_outline.png': Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /tmp/pi-tool.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

PS: Releasing the binaries themselves could be a solution as well.

@mumrau
Copy link
Author

mumrau commented Jan 25, 2021

On the other hand, the installer prints out a successful message even if the installation errors out, would be great to forward the return code and inform the user that something actually has gone wrong.

@C0D3-M4513R
Copy link

You could always extract the .deb via dpkg-deb --extract /path/to/deb, install potential dependencies and try to run the binary.

@mumrau
Copy link
Author

mumrau commented Feb 2, 2021

That's right. But I really believe releasing the binary in a conventionnal process would be a sweed addition, for everyone not running apt for instance, other OSes, scripting purposes, and so on.
The fact that the release only focuses on one arm platform should reduce the hassle as well.

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

No branches or pull requests

2 participants