]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dracut): pipe hardlink output to `dinfo`
authorHarald Hoyer <harald@redhat.com>
Fri, 21 May 2021 09:30:47 +0000 (11:30 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 21 May 2021 12:16:43 +0000 (14:16 +0200)
Otherwise the output is cluttered with:
```
Mode:           real
Files:          1364
Linked:         5 files
Compared:       0 xattrs
Compared:       384 files
Saved:          12.84 KiB
Duration:       0.052674 seconds
```

dracut.sh

index 24e1c2e7032c4109f8a32da50d446a82c5367a1e..60ac46f40151e5152454981228a1159446106066 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -2092,7 +2092,7 @@ done
 
 if [[ $do_hardlink == yes ]] && command -v hardlink > /dev/null; then
     dinfo "*** Hardlinking files ***"
-    hardlink "$initdir" 2>&1
+    hardlink "$initdir" 2>&1 | dinfo
     dinfo "*** Hardlinking files done ***"
 fi