1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-14 01:57:27 +03:00

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