diff options
author | Michal Soltys <soltys@ziu.info> | 2010-11-22 13:55:20 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-11-22 13:55:20 +0100 |
commit | 1a6ab670304dc8d8cdebc1d273076dc661dbafc5 (patch) | |
tree | 1c798b52eddfaf5d2cd2324075308a3ccc0b6c59 /udev/udevd.c | |
parent | 0e6546c11f2ec1ed2c5af3f2cdb2a6b507952782 (diff) |
udevd: create static nodes before /dev/null is needed
Diffstat (limited to 'udev/udevd.c')
-rw-r--r-- | udev/udevd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/udev/udevd.c b/udev/udevd.c index 21dde824ee..aa2e3657f0 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -1098,6 +1098,10 @@ int main(int argc, char *argv[]) chdir("/"); umask(022); + /* create standard links, copy static nodes, create nodes from modules */ + static_dev_create(udev); + static_dev_create_from_modules(udev); + /* before opening new files, make sure std{in,out,err} fds are in a sane state */ fd = open("/dev/null", O_RDWR); if (fd < 0) { @@ -1264,8 +1268,6 @@ int main(int argc, char *argv[]) } info(udev, "set children_max to %u\n", children_max); - static_dev_create(udev); - static_dev_create_from_modules(udev); udev_rules_apply_static_dev_perms(rules); udev_list_init(&event_list); |