[Eisfair] Aw?==?utf-8?Q?: Re: Aw: Re: Update Base ?==?utf-8?Q?2.7.5 online

Konrad Brunner mail at konrad-brunner.de
Do Aug 18 17:57:18 CEST 2016


Was mir noch einfällt:
Ich musste am 11.07.2016 die "mountvirtfs" in /etc/init.d/ ändern:
Das rot markierte musste ich einfügen, weil er mir /run/lock/subsys
nicht angelegt hatte. Das ist bei mir notwendig für lm_sensors
Hats das was damit zu tun?
Leider habe ich die originale mountvirtfs nicht mehr. Kann mir die wer
senden.


#!/bin/sh
 #-----------------------------------------------------------------------
-----
# /etc/init.d/mountvirtfs - initial boot script
#
# Creation   :  2015-06-13 hbfl
# Last Update:  $Id: mountvirtfs 39848 2015-12-14 17:43:03Z hbfl $
#
# Copyright (c) 2015-2015 the eisfair team, team(at)eisfair(dot)org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
 #-----------------------------------------------------------------------
-----


 #-----------------------------------------------------------------------
-----
# mount virtdevices, e.g. /proc
 #-----------------------------------------------------------------------
-----

lsb=false

if ${lsb}
then
    # read init-functions
    . /lib/lsb/init-functions
else
    # read functions
    . /etc/init.d/functions
fi

# 
------------------------------------------------------------------------
---
# usage
# 
------------------------------------------------------------------------
---
usage()
{
cat <<EOF

 Usage:
 ${0}
                -q, --quiet      suppress all normal output
                [start]
EOF
}
# 
------------------------------------------------------------------------
---
# start
# 
------------------------------------------------------------------------
---
start()
{

# Make sure /run is available before logging any messages
# this has only effect with tmpfs for /run
#
    if ! /usr/bin/mountpoint -q /run
    then
        /bin/mount /run || failed=1
    fi

    mkdir -p /run/lock /run/shm
    /bin/chmod 1777 /run/lock /run/shm
    
    mkdir -p /run/lock/subsys
    /bin/chmod 1777 /run/lock/subsys

    if ${lsb}
    then
#        log_info_msg "Mounting virtual file systems: ${INFO}/run"
        log_info_msg "Mounting virtual file systems:"
    else
        boot_mesg " * Mounting virtual file systems: ${INFO}/proc /sys"
        ${ECHO} -e "${NORMAL}"
    fi

    if ! /usr/bin/mountpoint -q /proc
    then
        if ${lsb}
        then
            log_info_msg2 " ${INFO}/proc"
        fi
        /bin/mount -o nosuid,noexec,nodev /proc || failed=1
    fi

    if ! /usr/bin/mountpoint -q /sys
    then
        if ${lsb}
        then
            log_info_msg2 " ${INFO}/sys"
        fi
        /bin/mount -o nosuid,noexec,nodev /sys || failed=1
    fi


# this has only effect with udev and devtmpfs
#    if ! /usr/bin/mountpoint -q /dev
#    then
#        if ${lsb}
#        then
#            log_info_msg2 " ${INFO}/dev"
#        fi
#        /bin/mount -o mode=0755,nosuid /dev  || failed=1
#    fi
#
#    /bin/ln -sfn /run/shm /dev/shm
  
    (exit ${failed:-0})
    evaluate_retval
    exit ${failed:-0}
}

# 
------------------------------------------------------------------------
---
# main
# 
------------------------------------------------------------------------
---
main()
{
    while [ ${#} -gt 0 ]
    do
        case "${1}" in
        -q|--quiet)
            _quiet=true
            shift
            ;;
        *)
            _action=${1}
            shift
            ;;
        esac
    done

    case "${_action}" in
    start)
        start
        ;;
    *)
        usage
        exit 1
        ;;
    esac

    exit 0
}

# 
------------------------------------------------------------------------
---
# call function main
# 
------------------------------------------------------------------------
---
main "${@}"

# 
------------------------------------------------------------------------
---
# end
# 
------------------------------------------------------------------------
---




Mehr Informationen über die Mailingliste Eisfair