]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(dracut): re-enable extended attributes in containers
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Tue, 2 Jul 2024 19:50:37 +0000 (15:50 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Thu, 18 Jul 2024 22:04:41 +0000 (18:04 -0400)
add common config to make it easier to discable xattr.

Running inside a container is not a good proxy for making decisions
about filesystem properties.

dracut.conf.d/50-no-xattr.conf.example [new file with mode: 0644]
dracut.sh

diff --git a/dracut.conf.d/50-no-xattr.conf.example b/dracut.conf.d/50-no-xattr.conf.example
new file mode 100644 (file)
index 0000000..ed971fc
--- /dev/null
@@ -0,0 +1,2 @@
+# disable xattr
+export DRACUT_NO_XATTR=1
index 856b884e96bcf9820b5b25cc51fd513620033419..fe4cca0aab2e63220a8cb36d4b0fdeabfc043b30 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1282,7 +1282,7 @@ if [[ -f $dracutbasedir/dracut-version.sh ]]; then
 fi
 
 if systemd-detect-virt -c &> /dev/null; then
-    export DRACUT_NO_MKNOD=1 DRACUT_NO_XATTR=1
+    export DRACUT_NO_MKNOD=1
     if [[ $hostonly ]]; then
         printf "%s\n" "dracut[W]: Running in hostonly mode in a container!" >&2
     fi