From c32856dd84af9fb0592cb4e0be48a69bd19bbc94 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 5 Nov 2013 09:58:21 +0100 Subject: [PATCH] 00-fsdev.sh: add warning about get_device_fstype() usage in ZFS scenarios --- defaults/initrd.d/00-fsdev.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/defaults/initrd.d/00-fsdev.sh b/defaults/initrd.d/00-fsdev.sh index 4f7f85e..7541d69 100755 --- a/defaults/initrd.d/00-fsdev.sh +++ b/defaults/initrd.d/00-fsdev.sh @@ -69,6 +69,9 @@ find_real_device() { } get_device_fstype() { + # This function expects a real or UUID=,LABEL= based reference + # that can be resolved to a real device node. Using this + # function in combination with ZFS may lead to unexpected behaviour. local device=$(find_real_device "${1}") if [ -n "${device}" ]; then blkid -o value -s TYPE "${device}"