mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
udevd: create static nodes before /dev/null is needed
This commit is contained in:
parent
0e6546c11f
commit
1a6ab67030
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user