From 0f517f76eabec9b97806155b563542e62c284801 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Wed, 29 Jun 2022 14:22:23 +0000 Subject: [PATCH] initramfs: Skip lvm scan before boot pool import TrueNAS SCALE doesn't boot from pools on top of LVM, and the scan can take a significant amount of time on systems with a large number of disks. Skip the lvm commands in our local-top/zfs script. Signed-off-by: Ryan Moeller --- contrib/initramfs/scripts/local-top/zfs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/initramfs/scripts/local-top/zfs b/contrib/initramfs/scripts/local-top/zfs index 6b80e9f43607..bae1707bdaba 100755 --- a/contrib/initramfs/scripts/local-top/zfs +++ b/contrib/initramfs/scripts/local-top/zfs @@ -48,6 +48,8 @@ activate_vg() } udev_settle -activate_vg +# TrueNAS SCALE doesn't boot from pools on top of LVM, and the scan can take a +# significant amount of time on systems with a large number of disks. Skip it. +#activate_vg exit 0