]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dracut.sh): drop restorecon call
authorDavid Tardon <dtardon@redhat.com>
Thu, 3 Mar 2022 09:47:46 +0000 (10:47 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 9 Mar 2022 04:03:32 +0000 (04:03 +0000)
AFAICT there is no need for it. cp already applies appropriate label on
the target file (unless --preserve=context is used).

dracut.sh

index 955740dc2dd95079de388c08d1f82572516d67ba..634ef87bf3abf20db62a50bc56ccc818aeffdb24 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -2572,8 +2572,6 @@ else
     fi
 fi
 
-command -v restorecon &> /dev/null && restorecon -- "$outfile"
-
 btrfs_uuid() {
     btrfs filesystem show "$1" | sed -n '1s/^.*uuid: //p'
 }