VirtualBox

忽略:
時間撮記:
2015-6-17 下午02:19:57 (9 年 以前)
作者:
vboxsync
訊息:

testboxscript/setup.sh: test for core dumps on Ubuntu

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/ValidationKit/testboxscript/setup.sh

    r56295 r56478  
    301301        echo "         requiretty option in /etc/sudoers."
    302302        su - "${TESTBOXSCRIPT_USER}" -c "sudo true"
     303    fi
     304}
     305
     306##
     307# Test if core dumps are enabled. See https://wiki.ubuntu.com/Apport!
     308#
     309test_coredumps() {
     310    if test "`lsb_release -is`" = "Ubuntu"; then
     311        if grep -q "apport" /proc/sys/kernel/core_pattern; then
     312            if grep -q "#.*problem_types" /etc/apport/crashdb.conf; then
     313                echo "It looks like core dumps are properly configured, good!"
     314            else
     315                echo "Warning: Core dumps will be not always generated!"
     316            fi
     317        else
     318            echo "Warning: Apport not installed! This package is required for core dump handling!"
     319        fi
    303320    fi
    304321}
     
    472489maybe_add_testboxscript_user;
    473490test_user;
     491test_coredumps;
    474492
    475493grant_user_testboxscript_write_access;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette