You are not logged in.

#1 2018-12-16 20:41:50

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

[SOLVED]Redirecting /opt by symlink breaks package installation

My hdd is full and i've decided to redirect /opt via symlink to another drive. Worked for months so far (reading). But i've noticed when installing new packages to /opt like RomVault(AUR) pacman is not able to write to the folder anymore (unless i change the symlink back to regular folder).
How can i fix this? Why is the symlink not transparent to pacman?

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                           [########################################] 100%
(1/1) checking package integrity                                         [########################################] 100%
(1/1) loading package files                                              [########################################] 100%
(1/1) checking for file conflicts                                        [########################################] 100%
error: failed to commit transaction (conflicting files)
romvault: /opt exists in filesystem
Errors occurred, no packages were upgraded.
$ stat /opt
  File: /opt -> /media/LinuxPart4/opt
  Size: 21        	Blocks: 0          IO Block: 4096   symbolic link
Device: 806h/2054d	Inode: 3627        Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-12-16 21:26:13.548359345 +0100
Modify: 2018-09-26 21:54:22.511554539 +0200
Change: 2018-12-16 21:26:13.545025945 +0100
 Birth: -

Last edited by Maniaxx (2018-12-16 21:18:44)


sys2064

Offline

#2 2018-12-16 20:57:11

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: [SOLVED]Redirecting /opt by symlink breaks package installation

Offline

#3 2018-12-16 21:18:30

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED]Redirecting /opt by symlink breaks package installation

Thanks. Will use bind mounts then. Didn't know symlinks are not 100% transparent.


sys2064

Offline

Board footer

Powered by FluxBB