]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/device: add stopping job message
authorMike Yuan <me@yhndnzj.com>
Tue, 12 Dec 2023 08:42:19 +0000 (16:42 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 12 Dec 2023 08:45:30 +0000 (16:45 +0800)
The use case for stopping a device unit is indeed narrow,
but we still want to show a clear message.

Preparation for later commits.

src/core/device.c

index d07adb2d2aebdae862128e094fb67f80becec301..6b2d7c3e247f045cd111dfa60738ec943860da84 100644 (file)
@@ -1291,6 +1291,7 @@ const UnitVTable device_vtable = {
         .status_message_formats = {
                 .starting_stopping = {
                         [0] = "Expecting device %s...",
+                        [1] = "Waiting for device %s to disappear...",
                 },
                 .finished_start_job = {
                         [JOB_DONE]       = "Found device %s.",