test: use the correct file name when restoring the original fstab

This commit is contained in:
Frantisek Sumsal 2023-08-23 15:10:23 +02:00
parent 1ffa5cfb38
commit 9541addff0

View file

@ -52,7 +52,7 @@ systemctl daemon-reload
[[ "$(systemctl show -P UnitFileState foo-fstab-opt.mount)" == bad ]]
rm -f /etc/fstab
[[ -e /tmp/fstab.bak ]] && mv -f /tmp/fstab /etc/fstab
[[ -e /tmp/fstab.bak ]] && mv -f /tmp/fstab.bak /etc/fstab
systemctl daemon-reload
# c) Mount unit