From 81ef18f53a3f0efa7d30c38492a0e58a8eedfba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 20 Aug 2020 18:56:38 +0200 Subject: [PATCH] Give the name of the project in installed files Looking at the confusion in https://bugzilla.redhat.com/show_bug.cgi?id=1861463, I think it's always good to be very explicit where some file came from. --- src/generator.rs | 2 +- units/swap-create@.service.d/binary-location.conf | 2 ++ units/swap-create@.service.in | 2 ++ zram-generator.conf.example | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/generator.rs b/src/generator.rs index 87a1d326..3dfc6823 100644 --- a/src/generator.rs +++ b/src/generator.rs @@ -93,7 +93,7 @@ pub fn run_generator(devices: &[Device], output_directory: &Path, fake_mode: boo fn handle_device(output_directory: &Path, device: &Device) -> Result { let swap_name = format!("dev-{}.swap", device.name); info!( - "Creating {} for /dev/{} ({}MB)", + "Creating unit {} (/dev/{} with {}MB)", swap_name, device.name, device.disksize / 1024 / 1024 diff --git a/units/swap-create@.service.d/binary-location.conf b/units/swap-create@.service.d/binary-location.conf index d901716c..2b9138c0 100644 --- a/units/swap-create@.service.d/binary-location.conf +++ b/units/swap-create@.service.d/binary-location.conf @@ -1,4 +1,6 @@ # SPDX-License-Identifier: MIT +# This file is part of the zram-generator project +# https://github.com/systemd/zram-generator [Service] ExecStart= diff --git a/units/swap-create@.service.in b/units/swap-create@.service.in index f45dff45..f6a21385 100644 --- a/units/swap-create@.service.in +++ b/units/swap-create@.service.in @@ -1,4 +1,6 @@ # SPDX-License-Identifier: MIT +# This file is part of the zram-generator project +# https://github.com/systemd/zram-generator [Unit] Description=Create swap on /dev/%i diff --git a/zram-generator.conf.example b/zram-generator.conf.example index a815f7dc..4836172e 100644 --- a/zram-generator.conf.example +++ b/zram-generator.conf.example @@ -1,3 +1,6 @@ +# This file is part of the zram-generator project +# https://github.com/systemd/zram-generator + [zram0] # This section describes the settings for /dev/zram0. #