Skip to content

Commit

Permalink
Don't hardcode device image file in unit template
Browse files Browse the repository at this point in the history
The cifmw_block_device role creatas a systemd unit that harcodes the
device image file to user for ceph-osd-losetup. Instead it should use
the cifmw_block_device_image_file var, since that var will always point
to correct path for the file (as it has a default).
  • Loading branch information
cescgina committed May 15, 2024
1 parent ea9dcda commit 624e041
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ After=syslog.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c '/sbin/losetup {{ cifmw_block_device_loop }} || \
/sbin/losetup {{ cifmw_block_device_loop }} /var/lib/ceph-osd.img ; partprobe {{ cifmw_block_device_loop }}'
/sbin/losetup {{ cifmw_block_device_loop }} {{ cifmw_block_device_image_file }} ; partprobe {{ cifmw_block_device_loop }}'
ExecStop=/sbin/losetup -d {{ cifmw_block_device_loop }}
RemainAfterExit=yes

Expand Down

0 comments on commit 624e041

Please sign in to comment.