1 2 3 4 5 6 7 8
for x in $(cat /proc/cmdline) do case $x in root=ZFS=*|root=zfs:*) BOOT=zfs ;; esac done