Add lvm2 to snap fail

Hi,
I want to add lvm2 into my snap but it fails:

tar: ./lib/x86_64-linux-gnu/libdevmapper-event-lvm2raid.so: Cannot create symlink to ‘device-mapper/libdevmapper-event-lvm2raid.so’: Operation not supported
tar: ./lib/x86_64-linux-gnu/libdevmapper-event-lvm2snapshot.so: Cannot create symlink to ‘device-mapper/libdevmapper-event-lvm2snapshot.so’: Operation not supported
tar: ./lib/x86_64-linux-gnu/libdevmapper-event-lvm2mirror.so: Cannot create symlink to ‘device-mapper/libdevmapper-event-lvm2mirror.so’: Operation not supported
tar: ./lib/x86_64-linux-gnu/libdevmapper-event-lvm2thin.so: Cannot create symlink to ‘device-mapper/libdevmapper-event-lvm2thin.so’: Operation not supported
tar: ./usr/share/doc/dmeventd/changelog.Debian.gz: Cannot create symlink to ‘…/libdevmapper1.02.1/changelog.Debian.gz’: Operation not supported
tar: Exiting with failure status due to previous errors
dpkg-deb: error: subprocess tar returned error exit status 2
Error while provisioning ‘/work/snap/parts/integration/ubuntu/download/dmeventd_1.02.110-1ubuntu10_amd64.deb’

the section of snapcraft.yaml is

parts:
visual-lvm-remote:
plugin: dump

integration:
plugin: nil
stage-packages: [lvm2]

How to fix it ?

Thank you!

Hi, I have a few questions:

  • What is the native filesystem where this is unpacked?
  • How are you running snapcraft and what version?
  • What host OS is this run on?
1 Like

Yes! you are right!
the original fs is fat32. I moved project into ext4 volume and it works well

2 Likes