Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Symlink in /compat/linux/run becomes a real directory in upgrade procedure, making it impossible to install Linux compatibility #1502

Open
NorwegianRockCat opened this issue Nov 20, 2017 · 1 comment

Comments

@NorwegianRockCat
Copy link

Synopsis

In /compat/linux the run is a symlink to /var/run. This is normally created by the pkg (e.g., linux-c7).

Yet, after performing an upgrade, the /compat/linux/run is no longer a symlink but a directory. I'm not sure when this happens (when the boot environment is created, on reboot, etc.), but the result is the same. Any installation of the linux package will fail because with an error about "run being a directory." The only way to fix this is to remove the directory manually.

Steps to reproduce

  1. Install linux-c7 into a stable or unstable release.
  2. Check that /compat/linux/run is a symlink to /var/run
  3. Upgrade it via pc-updatemanager.
  4. The new boot environment should now have /compat/linux/run as a directory and linux-c7 is not installed in the upgraded environment.

Misc

I'm not sure if this is a bug in the port uninstallation or an interesting interaction with the boot environment, but it seems broken and it is annoying to manually install linux compatibility after each upgrade.

@q5sys
Copy link
Member

q5sys commented Nov 27, 2017

Thanks for the report, we'll look into this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants