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

deb hardlink into opt assumes same filesystem , installation fails where opt and / differ #427

Open
RoGoR1 opened this issue Nov 19, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@RoGoR1
Copy link

RoGoR1 commented Nov 19, 2022

Expected Behavior

dpkg -i expresslrs-configurator_1.5.2_amd64.deb

echo $?

0

Current Behavior

dpkg -i expresslrs-configurator_1.5.2_amd64.deb

dpkg: error processing archive expresslrs-configurator_1.5.2_amd64.deb (--install):
error creating hard link './opt/ExpressLRS Configurator/resources/assets/icons/64x64.png': Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe...
Errors were encountered while processing: expresslrs-configurator_1.5.2_amd64.deb

Steps to Reproduce

  1. mount -o loop /boot /opt # for example
  2. dpkg -i expresslrs-configurator_1.5.2_amd64.deb
  3. fails because /boot (opt) and / are not the same filesystems

Possible Solution (Not obligatory)

use a soft link: ln -s rather than a hard link ln

(don't use directories with spaces and Caps, can be problematic in Linux and is the way of the windows. Rather than using
'ExpressLRS Configurator' opt for expresslrs-configurator, expresslrs_configurator, or expresslrs. My two cents!)

I got around this bug by creating /usr/local/lib/expresslrs and creating a symbolic link for the package to install into:
'/opt/ExpressLRS Configurator' -> /usr/local/lib/expresslrs

Then, on my system, because /usr/local/lib is the same filesystem as /, the hard link was successful. This is a workaround for me, I'm not recommending this as a solution. ;)
Thank you!

Context

root@bam:/opt# df -lTh|egrep -v 'tmpfs|squash'
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdc3 xfs 219G 48G 172G 22% /
/dev/sdc1 ext4 974M 55M 852M 7% /boot
/dev/nvme0n1p3 xfs 50G 14G 37G 27% /opt
/dev/nvme0n1p2 vfat 43M 512 43M 1% /boot/efi
/dev/sde btrfs 3.7T 3.3T 420G 89% /disks/raid1
/dev/sde btrfs 3.7T 3.3T 420G 89% /data/disks/slam
/dev/sde btrfs 3.7T 3.3T 420G 89% /data/audio
/dev/sde btrfs 3.7T 3.3T 420G 89% /home
/dev/sde btrfs 3.7T 3.3T 420G 89% /home/data
/dev/nvme0n1p4 xfs 1.8T 677G 1.2T 38% /home/roger

  • Operating System and version:

root@bam:/opt# cat /etc/issue
Debian GNU/Linux 11

root@bam:/opt# uname -a
Linux bam 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux

@RoGoR1 RoGoR1 added the bug Something isn't working label Nov 19, 2022
@jurgelenas
Copy link
Member

If anyone is interested in digging into this here is the relevant electron-builder issue: electron-userland/electron-builder#5721

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants