Skip to content

Conversation

@eekelvin
Copy link

@eekelvin eekelvin commented Aug 4, 2019

In ubuntu 19.04, the libraries some commands depend on are in the path /usr/lib/x86_64-linux-gnu. The mount command will overlay the path /usr/lib/x86_64-linux-gnu with lib64, so that some commands could not run properly, such as cp, mkdir etc. So the following commit is special for library dependencies in ubuntu 19.04.

  1. relink the softlink of ld-linux-x86-64.so.2 in ubuntu 19.04 before mount

1. relink the softlink of ld-linux-x86-64.so.2 in ubuntu 19.04
before mount
Copy link
Contributor

@llhuii llhuii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think not need to check for ubuntu-19.04, because of:

  1. [ -h $ld_path ] checks that ld is a symbolic link.
  2. And ln -sf only replaces x86_64-linux-gnu with lib.
  3. More importantly this bug may be raised in other releases. Say ubuntu-19.10, then you would update the code again.

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

Successfully merging this pull request may close these issues.

2 participants