]> git.ipfire.org Git - people/ms/bricklayer.git/commitdiff
master: Throw away dracut logs
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 May 2021 15:01:49 +0000 (15:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 May 2021 15:01:49 +0000 (15:01 +0000)
Dracut currently has a bug where loads of console output is generated
which slows down the build process.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/bricklayer-master

index 65fe3bb31151812a96ea2bd22508a37c9400aa74..c182288b8d3597f7d0e9c697bceadbd0b50f8ff7 100644 (file)
@@ -250,8 +250,10 @@ install_initramfs() {
                --filesystems "squashfs"
        )
 
+       # The output is currently thrown away because dracut is broken and generates a lot
+       # of messages which slow down the build process...
        if ! in_buildsystem --bind="${tempdir}" \
-                       dracut "${args[@]}" "${filename}" "${kernel_release}" &>/tmp/dracut.$$; then
+                       dracut "${args[@]}" "${filename}" "${kernel_release}" &>/dev/null; then
                unlink "${filename}"
                return 1
        fi