1. do_start() {
  2. #
  3. # Mount local file systems in /etc/fstab.
  4. #
  5. mount_all_local() {
  6. if mountpoint -q /usr; then
  7. # May have been mounted read-only by initramfs.
  8. # Remount with unmodified options from /etc/fstab.
  9. mount -o remount /usr
  10. fi
  11. mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,gfs2,ceph \
  12. -O no_netdev
  13. }
  14. pre_mountall
  15. if [ "$VERBOSE" = no ]
  16. then
  17. log_action_begin_msg "Mounting local filesystems"
  18. mount_all_local
  19. log_action_end_msg $?
  20. else
  21. log_daemon_msg "Will now mount local filesystems"
  22. mount_all_local
  23. log_end_msg $?
  24. fi
  25. post_mountall
  26. # We might have mounted something over /run; see if
  27. # /run/initctl is present. Look for
  28. # /usr/share/sysvinit/update-rc.d to verify that sysvinit (and
  29. # not upstart) is installed).
  30. INITCTL="/run/initctl"
  31. if [ ! -p "$INITCTL" ] && [ -f "/usr/share/sysvinit/update-rc.d" ]; then
  32. # Create new control channel
  33. rm -f "$INITCTL"
  34. mknod -m 600 "$INITCTL" p
  35. # Reopen control channel.
  36. PID="$(pidof -s /sbin/init || echo 1)"
  37. [ -n "$PID" ] && kill -s USR1 "$PID"
  38. fi
  39. # Execute swapon command again, in case we want to swap to
  40. # a file on a now mounted filesystem.
  41. #
  42. # Ignore 255 status due to swap already being enabled
  43. #
  44. if [ "$NOSWAP" = yes ]
  45. then
  46. [ "$VERBOSE" = no ] || log_warning_msg "Not activating swap as requested via bootoption noswap."
  47. else
  48. if [ "$VERBOSE" = no ]
  49. then
  50. log_action_begin_msg "Activating swapfile swap"
  51. swapon -a -e 2>/dev/null || : # Stifle "Device or resource busy"
  52. log_action_end_msg 0
  53. else
  54. log_daemon_msg "Will now activate swapfile swap"
  55. swapon -a -e -v
  56. log_action_end_msg $?
  57. fi
  58. fi
  59. # Remount tmpfs filesystems; with increased VM after swapon,
  60. # the size limits may be adjusted.
  61. mount_run mount_noupdate
  62. mount_lock mount_noupdate
  63. mount_shm mount_noupdate
  64. # Now we have mounted everything, check whether we need to
  65. # mount a tmpfs on /tmp. We can now also determine swap size
  66. # to factor this into our size limit.
  67. mount_tmp mount_noupdate
  68. }

Were this test come from??

'"$NOSWAP" = yes'

it could be the reason for not mounting Swap..