mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00:00
tmpfiles: fix assert
Oct 03 17:33:20 systemd-tmpfiles[872]: Assertion 'IN_SET(i->type, CREATE_BLOCK_DEVICE|CREATE_CHAR_DEVICE)' failed at src/tmpfiles/tmpfiles.c:1837, function create_device(). Aborting. I think this is caused by the line: b! /dev/private/smartmontools-dev/sda 0660 root disk - 8:0
This commit is contained in:
parent
a9b0d0a2d0
commit
a8ec0abe5a
|
@ -1834,7 +1834,7 @@ static int create_device(Item *i, mode_t file_type) {
|
|||
int r;
|
||||
|
||||
assert(i);
|
||||
assert(IN_SET(i->type, CREATE_BLOCK_DEVICE|CREATE_CHAR_DEVICE));
|
||||
assert(IN_SET(i->type, CREATE_BLOCK_DEVICE, CREATE_CHAR_DEVICE));
|
||||
assert(IN_SET(file_type, S_IFBLK, S_IFCHR));
|
||||
|
||||
r = path_extract_filename(i->path, &bn);
|
||||
|
|
Loading…
Reference in a new issue