From 31103471c7597886162e0f9be80fde62964db919 Mon Sep 17 00:00:00 2001 From: toby Date: Sun, 24 Feb 2019 21:53:15 +0000 Subject: [PATCH] trying to speedup the startup process. xz can use all cores during decompress on bootup as well --- create_pxeinitrd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_pxeinitrd.sh b/create_pxeinitrd.sh index 6e90a8d..d5f94bd 100755 --- a/create_pxeinitrd.sh +++ b/create_pxeinitrd.sh @@ -187,7 +187,7 @@ cat <<-"EOF" >$INITRD_DIR/init mount -t tmpfs -o size=${size:=10000}m tmpfs /newroot || error echo "Extracting rootfs... " - xz -d -c -f rootfs.tar.xz | tar -x -f - -C /newroot || error + xz -T0 -d -c -f rootfs.tar.xz | tar -x -f - -C /newroot || error mount --move /sys /newroot/sys mount --move /proc /newroot/proc