~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to debian/src/initscripts/etc/init.d/mountnfs.sh

  • Committer: Package Import Robot
  • Author(s): Roger Leigh, Roger Leigh, Steve Langasek
  • Date: 2012-04-21 12:11:45 UTC
  • mfrom: (9.1.33 sid)
  • Revision ID: package-import@ubuntu.com-20120421121145-tcyy57v1j6gx946d
Tags: 2.88dsf-23
[ Roger Leigh ]
* Acknowledge NMU for translation updates.  Thanks to Christian
  Perrier.
* debian/control:
  - Upgrade to Standards-Version 3.9.3.
  - Build-Depend on debhelper v9.
  - Correct Vcs-Git URL.
* debian/rules:
  - Use DEB_HOST_ARCH_OS = hurd rather than
    DEB_HOST_ARCH = hurd-i386.   Thanks to Pino Toscano.
* debian/patches:
  - 11_lfs_cflags.patch: Add patch for enabling large file support,
    needed on GNU/Hurd, but useful for all platforms.
  - 73_lfs_cflags.patch: Add patch for enabling large file support
    in startpar.
* initscripts:
  - Moved RAM* settings from /etc/default/rcS to /etc/default/tmpfs.
    This ensures that the settings are equivalent for upgrades and
    new installations, but will require manual configuration of the
    settings for upgrades (no migration from /etc/default/rcS to
    /etc/default/tmpfs will take place, due to tmpfs being a
    conffile).  tmpf(5) manual page added to document all aspects
    of tmpfs configuration, including the existing documentation in
    rcS(5).
  - Drop the use of .ramfs dotfiles in /run and /run/lock.  These
    were a legacy of /lib/init/rw and were not actually used by
    anything.  Closes: #403863.
  - Drop /etc/init.d/mountoverflowtmp.  This has been merged into
    the general tmpfs on /tmp handling functions.  This means the
    generic RAMTMP configuration is used for the overflowtmp.
    Closes: #567539.
  - It is now possible to configure a tmpfs mount size limit as a
    percentage of the total VM size (%VM) as well as a percentage
    of the RAM size (%).  This is computed by tmpfs.sh and the
    tmpfs mounts are remounted with the updated size limit after
    swap becomes available.
  - An fstab entry for /tmp overrides RAMTMP.  Document tmpfs
    override and tmpfs defaults in tmpfs(5), also undeprecating the
    tmpfs settings.  Closes: #585540, #665995.
  - An fstab entry for /run/lock or /run/shm overrides RAMLOCK and
    RAMSHM.
  - bootclean cleans /tmp, /run and /run/lock before any filesystems
    are mounted as well as after local and network mounts.  This
    permits cleaning of directories which would otherwise be hidden
    by mountpoints later in the boot process.
    Closes: #55707, #558000, #666871.  Additionally clean up
    /lib/init/rw in case any files were hidden by the (now removed)
    tmpfs mount at this location.  Closes: #652625.
  - Removed last trace of the long-removed EDITMOTD from the
    postinst.  Closes: #438895.
  - Removed documentation of #346342 in rcS(5).  This is no longer
    an issue now tzdata keeps a copy of the data on the rootfs.
    Closes: #385172.
  - Correct description of TMPTIME in rcS(5).  Thanks to Alan J.
    Greenberger.  Closes: #562500.
  - urandom: Applied a series of patches from John Denker to
    improve the integrity of random number generation.  Many thanks.
    Closes: #596479, #596480, #596481, #596482, #596483.
* sysv-rc:
  - Remove old upgrade logic from maintainer scripts not required
    for wheezy.
  - Migrate users of obsolete static boot ordering to dynamic boot
    ordering.
  - Remove use of /etc/init.d/.legacy-bootordering.  Closes: #668312.
  - Improve help text of debconf message when it is not possible to
    automatically enable dynamic boot ordering.  Provide explicit
    instructions for how to purge obsolete init scripts.
    Closes: #550425.
  - etc/init.d/rc: Ensure linprocfs is mounted on kFreeBSD.  Thanks
    to Robert Millan.  Closes: #659480.
  - Drop undocumented CONCURRENCY setting from /etc/init.d/rc.
    Closes: #518249, #540448, #539261.  Note that this still contains
    internal fallbacks to support non-insserv booting, which may be
    removed at a later date.
  - invoke-rc.d:
    + Minor manual page corrections.  Thanks to Anthony Fiumara.
      Closes: #664816.
    + Remove mention of the "dpkg Programmers' Manual" and replace
      with references to Debian Policy.  Closes: #543793.
  - update-rc.d:
    + Correctly warn about non-LSB standard runlevels.  Thanks to
      Chris Hiestand for this patch.  Closes: #614895.
    + Remove obsolete documentation of
      /var/lib/sysv-rc/legacy-bootsequence.  Thanks to Thomas Hood.
      Closes: #623051.
* sysvinit:
  - Minor corrections for halt(8) manual page.  Thanks to
    Christoph Anton Mitterer.  Closes: #587923.
  - Installation with debootstrap --variant=fakechroot now works, due
    to only migrating the old control channel when it is still
    present.  Thanks to Michael Gilbert.  Closes: #596284.
* sysvinit-utils:
  - Recommend bootlogd.  Closes: #659490.  This means that booklogd
    will be installed by default, but will be removable.
    Closes: #232569.
  - Correct documentation of the startpar -i option.  Closes: #545438.
  - Correct startpar(8) SEE ALSO section.  Closes: #634146.
  - Correct wording in service(8).  Thanks to Joey Hess and Regid
    Ichira.  Closes: #545401, #667745.

[ Steve Langasek ]
* debian/service/service: fix upstart compatibility to not try to use the
  upstart commands when init isn't upstart.  Closes: #636054.
* debian/rules: pass CFLAGS when building startpar.
* Fix startpar to not run init scripts that have matching upstart jobs,
  instead waiting for a signal from upstart.  Closes: #660824.
    to Robert Millan.  (Closes: #659480)
* sysvinit:
  - Don't restart or perform initctl migration if systemd is
    running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
### END INIT INFO
15
15
 
16
16
. /lib/init/vars.sh
 
17
. /lib/init/mount-functions.sh
17
18
. /lib/lsb/init-functions
18
19
 
19
20
do_wait_async_mount() {
20
 
        [ -f /etc/fstab ] || return
21
 
        #
22
21
        # Read through fstab line by line. If it is NFS, set the flag
23
22
        # for mounting NFS file systems. If any NFS partition is found
24
23
        # then wait around for it.
25
 
        #
26
 
 
27
 
        exec 9<&0 </etc/fstab
28
24
 
29
25
        waitnfs=
30
 
        while read DEV MTPT FSTYPE OPTS REST
31
 
        do
32
 
                case "$DEV" in
33
 
                  ""|\#*)
34
 
                        continue
35
 
                        ;;
36
 
                esac
37
 
                case "$OPTS" in
38
 
                  noauto|*,noauto|noauto,*|*,noauto,*)
39
 
                        continue
40
 
                        ;;
41
 
                esac
42
 
                case "$FSTYPE" in
43
 
                  nfs|nfs4|smbfs|cifs|coda|ncp|ncpfs|ocfs2|gfs|ceph)
44
 
                        ;;
45
 
                  *)
46
 
                        continue
47
 
                        ;;
48
 
                esac
49
 
                case "$MTPT" in
50
 
                  /usr/local|/usr/local/*)
51
 
                        ;;
52
 
                  /usr|/usr/*)
53
 
                        waitnfs="$waitnfs $MTPT"
54
 
                        ;;
55
 
                  /var|/var/*)
56
 
                        waitnfs="$waitnfs $MTPT"
57
 
                        ;;
58
 
                esac
 
26
        for file in "$(eval ls $(fstab_files))"; do
 
27
                if [ -f "$file" ]; then
 
28
                        while read DEV MTPT FSTYPE OPTS REST; do
 
29
                                case "$DEV" in
 
30
                                  ""|\#*)
 
31
                                        continue
 
32
                                        ;;
 
33
                                esac
 
34
                                case "$OPTS" in
 
35
                                  noauto|*,noauto|noauto,*|*,noauto,*)
 
36
                                        continue
 
37
                                        ;;
 
38
                                esac
 
39
                                case "$FSTYPE" in
 
40
                                  nfs|nfs4|smbfs|cifs|coda|ncp|ncpfs|ocfs2|gfs|ceph)
 
41
                                        ;;
 
42
                                  *)
 
43
                                        continue
 
44
                                        ;;
 
45
                                esac
 
46
                                case "$MTPT" in
 
47
                                  /usr/local|/usr/local/*)
 
48
                                        ;;
 
49
                                  /usr|/usr/*)
 
50
                                        waitnfs="$waitnfs $MTPT"
 
51
                                        ;;
 
52
                                  /var|/var/*)
 
53
                                        waitnfs="$waitnfs $MTPT"
 
54
                                        ;;
 
55
                                esac
 
56
                        done < "$file"
 
57
                fi
59
58
        done
60
59
 
61
 
        exec 0<&9 9<&-
62
 
 
63
60
        # Wait for each path, the timeout is for all of them as that's
64
61
        # really the maximum time we have to wait anyway
65
62
        TIMEOUT=900