]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
chore(crypt): do not use recursive on removing a file
authorJo Zzsi <jozzsicsataban@gmail.com>
Tue, 7 Jan 2025 14:42:03 +0000 (09:42 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 7 Jan 2025 15:38:00 +0000 (10:38 -0500)
modules.d/90crypt/module-setup.sh

index 8919b574ad184989628b71bfad5bb40b45800128..5ca4dc6011aebd500e017e1c194b899dee82bade 100755 (executable)
@@ -141,7 +141,7 @@ install() {
         if [ -s "$initdir"/etc/crypttab ]; then
             mark_hostonly /etc/crypttab
         else
-            rm -rf "$initdir"/etc/crypttab
+            rm -f "$initdir"/etc/crypttab
         fi
     fi