Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Fix some errors in FreeBSD 13 #229

Merged
merged 1 commit into from
May 17, 2021
Merged

Conversation

5u623l20
Copy link
Contributor

  • In case the CD-ROM is not mounted "glabel status | grep CONTEXT | awk '{print $3}'"
    will have a null string which will eventually assign the value "/dev/" to "dev_context"
    variable. In later occasions while existence of "dev_context" is checked it will
    always return true and no elif conditions will be executed. Add additional glabel check
    for BSD.
  • In case the CD-ROM is not mounted and used there is nothing to unmount and eventually
    trying to unmount will throw error. So add an additional check to see if "MOUNT_DIR" is
    used as any mount points or not.

Changes proposed in this pull request:

  • briefly describe change here,
  • briefly describe change here,
  • briefly describe change here.

- In case the CD-ROM is not mounted "glabel status | grep CONTEXT | awk '{print $3}'"
  will have a null string which will eventually assign the value "/dev/" to "dev_context"
  variable. In later occasions while existence of "dev_context" is checked it will
  always return true and no elif conditions will be executed. Add additional glabel check
  for BSD.
- In case the CD-ROM is not mounted and used there is nothing to unmount and eventually
  trying to unmount will throw error. So add an additional check to see if "MOUNT_DIR" is
  used as any mount points or not.
@vholer vholer merged commit 4238552 into OpenNebula:master May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants