Skip to content

Commit

Permalink
allow localmount and netmount to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
williamh committed Aug 17, 2015
1 parent 279f1e5 commit 7341cd8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 11 additions & 0 deletions NEWS.md
Expand Up @@ -3,6 +3,17 @@
This file will contain a list of notable changes for each release. Note
the information in this file is in reverse order.

## OpenRC-x.xx

The behaviour of localmount and netmount in this version is changing. In
the past, these services always started successfully. In this version,
they will be able to fail if file systems they mount fail to mount. If
you have file systems listed in fstab which should not be mounted at
boot time, make sure to add noauto to the mount options. If you have
file systems that you want to attempt to mount at boot time but failure
should be allowed, add nofail to the mount options for these file
systems in fstab.

## OpenRC-0.14

The binfmt service, which registers misc binary formats with the Linux
Expand Down
3 changes: 0 additions & 3 deletions init.d/localmount.in
Expand Up @@ -29,9 +29,6 @@ start()
ebegin "Mounting local filesystems"
mount -at "$types" $no_netdev
eend $? "Some local filesystem failed to mount"

# Always return 0 - some local mounts may not be critical for boot
return 0
}

stop()
Expand Down
1 change: 0 additions & 1 deletion init.d/netmount.in
Expand Up @@ -27,7 +27,6 @@ start()
rc=$?
fi
ewend $rc "Could not mount all network filesystems"
return 0
}

stop()
Expand Down

0 comments on commit 7341cd8

Please sign in to comment.