403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/grub2-pcbsd/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/grub2-pcbsd/files/patch-util_grub-mkconfig__lib.in
--- util/grub-mkconfig_lib.in.orig	2015-06-03 14:54:01 UTC
+++ util/grub-mkconfig_lib.in
@@ -139,7 +139,17 @@ prepare_grub_to_access_device ()
     echo "insmod ${module}"
   done
 
-  fs="`"${grub_probe}" --device $@ --target=fs`"
+  # KPM - 6-24-2013
+  # Add this work-around since GRUB doesn't like to identify ZFS
+  # partitions which are in a raidz configuration, gives Unknown FS error
+  # We can instead look at zpool to see if this device is used though
+  zpool status 2>/dev/null | grep -q "`echo ${device} | sed 's|/dev/||g'`"
+  if [ $? -eq 0 ] ; then
+     fs="zfs"
+  else
+     fs="`"${grub_probe}" --device $@ --target=fs`"
+  fi
+
   for module in ${fs} ; do
     echo "insmod ${module}"
   done

Youez - 2016 - github.com/yon3zu
LinuXploit