Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-119786

"mount -a" doesn't mount the swap devices, despite what is implied by the manpage

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhel-10.2
    • rhel-8.10, rhel-9.6, rhel-10.0
    • util-linux
    • None
    • No
    • Low
    • rhel-base-utils-core
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      The mount(8) manpage states the following:

             -a, --all
                 Mount all filesystems (of the given types) mentioned in fstab (except for those whose line contains the
                 noauto keyword). The filesystems are mounted following their order in fstab. The mount command compares
                 filesystem source, target (and fs root for bind mount or btrfs) to detect already mounted filesystems.
                 The kernel table with already mounted filesystems is cached during mount --all. This means that all
                 duplicated fstab entries will be mounted.
      

      This above states that everything in fstab is being mounted, except "noauto".
      But it appears the swap devices are not mounted (swapon -a should be used instead.

      IMHO there is hence a bug in mount, either the manpage needs to be updated and explain to use "swapon", or mount -a should also mount the swap devices.

      What is the impact of this issue to you?

      Doc compliance

      Please provide the package NVR for which the bug is seen:

      util-linux-core-2.37.4-21.el9

      How reproducible is this bug?:

      N/A

              rhn-engineering-kzak Karel Zak
              rhn-support-rmetrich Renaud Métrich
              Karel Zak Karel Zak
              Radka Brychtova Radka Brychtova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: