Skip to content

Commit

Permalink
Give the name of the project in installed files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
keszybz committed Jan 7, 2021
1 parent da26b0c commit 81ef18f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64> {
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
Expand Down
2 changes: 2 additions & 0 deletions units/swap-create@.service.d/binary-location.conf
Original file line number Diff line number Diff line change
@@ -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=
Expand Down
2 changes: 2 additions & 0 deletions units/swap-create@.service.in
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions zram-generator.conf.example
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down

0 comments on commit 81ef18f

Please sign in to comment.