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

« back to all changes in this revision

Viewing changes to debian/initscripts/etc/init.d/checkfs.sh

  • Committer: Bazaar Package Importer
  • Author(s): Petter Reinholdtsen, Petter Reinholdtsen, Kel Modderman
  • Date: 2009-07-27 21:12:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090727211227-lxxqgakhpy83x5on
Tags: 2.87dsf-2
[ Petter Reinholdtsen ]
* Start generating MD5 sum files using dh_md5sum, build-depend
  on debhelper for this.  Use compat level 1 to get it to process
  debian/tmp/.
* Drop the stop calls for K11mountoverflowtmp in runlevels 0 and 6.
  The umountfs script will take care of that task (Closes: 526733).
* Remove setting of unused makefile variable LIBC6 from rules.
* Move copyright, preinst, postinst and postrm files for initscripts
  and sysv-rc to debian/ to make the build system closer to other
  source packages.
* Add the sysv-rc saveconfig script to /usr/share/doc/sysv-rc/
  to provide an example.
* Let sysv-rc depend on insserv (>= 1.12.0-10) to activate
  dependency based boot sequencing by default.

[ Kel Modderman ]
* Allow forcefsck on kernel cmdline to have same effect as touching
  /forcefsck in checkfs.sh and checkroot.sh. (Closes: #529498)
* Also allow fastboot on kernel cmdline to have same effect as touching
  /fastboot in checkfs.sh and checkroot.sh.
* Do not use brace expansion in debian/rules and remove need for
  setting SHELL to /bin/bash.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#               fi
39
39
#       fi
40
40
        BAT=""
 
41
        fscheck="yes"
 
42
 
 
43
        if [ -f /fastboot ] || grep -s -w -i "fastboot" /proc/cmdline
 
44
        then
 
45
                [ "$fscheck" = yes ] && log_warning_msg "Fast boot enabled, so skipping file system check."
 
46
                fscheck=no
 
47
        fi
41
48
 
42
49
        #
43
50
        # Check the rest of the file systems.
44
51
        #
45
 
        if [ ! -f /fastboot ] && [ ! "$BAT" ] && [ "$FSCKTYPES" != "none" ]
 
52
        if [ "$fscheck" = yes ] && [ ! "$BAT" ] && [ "$FSCKTYPES" != "none" ]
46
53
        then
47
 
                if [ -f /forcefsck ]
 
54
                if [ -f /forcefsck ] || grep -s -w -i "forcefsck" /proc/cmdline
48
55
                then
49
56
                        force="-f"
50
57
                else