From f39da5d6fc11c6c2bf1e78c90e4f66801b0f9068 Mon Sep 17 00:00:00 2001 From: Jiyong Date: Tue, 6 Aug 2024 11:59:00 +0900 Subject: [PATCH] Add ID_TYPE attribute for udev-rule [Problem] Unintentionally, the media-server is executed by the virtual block devices. [Solution] Added ID_TYPE=disk condition to avoid execution by virtual block devices. Change-Id: I4f81ac426c4c6a23f718a44c221f20e9026979df --- packaging/99-media-server.rules | 2 +- packaging/media-server.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/99-media-server.rules b/packaging/99-media-server.rules index f2f7a6f..2cb7e41 100644 --- a/packaging/99-media-server.rules +++ b/packaging/99-media-server.rules @@ -1 +1 @@ -SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="filesystem", RUN+="/usr/bin/systemctl start media-server" +SUBSYSTEM=="block", ENV{ID_TYPE}=="disk", ENV{ID_FS_USAGE}=="filesystem", RUN+="/usr/bin/systemctl start media-server" diff --git a/packaging/media-server.spec b/packaging/media-server.spec index 9b1e339..fc87ee0 100644 --- a/packaging/media-server.spec +++ b/packaging/media-server.spec @@ -1,6 +1,6 @@ Name: media-server Summary: A server for media content management -Version: 0.6.8 +Version: 0.6.9 Release: 0 Group: Multimedia/Service License: Apache-2.0 -- 2.7.4