Ticket #59: openrc-forcefsck.patch

File openrc-forcefsck.patch, 0 bytes (added by Jakub Januszkiewicz <jakub.januszkiewicz@gmail.com>, 2 years ago)

a patch for this issue

  • fsck

    diff -Naur init.d/fsck init.d-patched/fsck
    old new  
    3434                return 0 
    3535        fi 
    3636 
    37         ebegin "Checking local filesystems" 
     37        if [ -e /forcefsck ]; then 
     38                fsck_opts="-f" 
     39                ebegin "Checking local filesystems (check forced)" 
     40        else 
     41                ebegin "Checking local filesystems" 
     42        fi 
     43 
    3844        for p in ${fsck_passno}; do 
    3945                local IFS="${_IFS}" 
    4046                case "${p}" in 
     
    4551        done 
    4652 
    4753        if [ "${RC_UNAME}" = "Linux" ]; then 
    48                 fsck_opts="-C0 -T" 
     54                fsck_opts="${fsck_opts} -C0 -T" 
    4955                if [ -z "${fsck_passno}" ]; then 
    5056                        fsck_args=${fsck_args--A -p} 
    5157                        if echo 2>/dev/null >/.test.$$; then 
  • root

    diff -Naur init.d/root init.d-patched/root
    old new  
    2323                *)      mount -u -o rw /;; 
    2424        esac 
    2525        eend $? "Root filesystem could not be mounted read/write" 
    26         rm -f /fastboot 
     26        rm -f /fastboot /forcefsck 
    2727}