Bug 23212 - Отсутвует /dev/null
Summary: Отсутвует /dev/null
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: udev_static-addon (show other bugs)
Version: unstable
Hardware: all Linux
: P3 blocker
Assignee: Valery Inozemtsev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-23 03:55 MSK by Mikhail Efremov
Modified: 2010-03-24 11:46 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Efremov 2010-03-23 03:55:58 MSK
И работает все чудом. Просто благодаря тому, что в start_daemon() (/etc/init.d/functions) есть строчка c '>/dev/null', создающая обычный файл.
Можно провести простой эксперимент, закомментировав там следующий кусок кода:

# Is it running at all?
    if ! start-stop-daemon $FLAGS --test > /dev/null; then
        msg_already_running "$DISPNAME"
        passed "$BASENAME startup"
        STATUS=$?
        echo
        return $STATUS
    fi

В результате initlog не сможет открыть /dev/null и на этом выполнение rc.sysinit  закончится.
Не рекомендую делать на живой системе.
Да и сам udevd сразу после запуска пытается открыть /dev/null. А также /dev/kmsg, куда пишет строчку о своем запуске, его видимо тоже хорошо бы добавить.
Comment 1 Repository Robot 2010-03-24 10:56:23 MSK
udev_static-addon-0.2-alt6 -> sisyphus:

* Wed Mar 24 2010 Valery Inozemtsev <shrek@altlinux> 0.2-alt6

- added null and kmsg nods (closes: #23212)