Hi!

GRUB does not mount a hidden fat filesystem. If the configuration files
reside on such, GRUB will ignore them. GRUB shouldn't.
I have included a patch which would enable GRUB to mount hidden fat
filesystems, but --- this doesn't work. And I couldn't find out why! Any
hints?


--- pc_slice.h.old*Mon Mar 27 01:54:04 2000
+++ pc_slice.h*Mon Mar 27 19:19:33 2000
@@ -109,14 +109,17 @@
 #define PC_SLICE_TYPE_MINIX**0x80
 #define PC_SLICE_TYPE_EXT2FS       *0x83

+/* This is not a flag actually, but used as if it were a flag.  */
+#define PC_SLICE_TYPE_HIDDEN_FLAG*0x10
+
 /* For convinience.  */
 #define IS_PC_SLICE_TYPE_FAT(type)*\
-  (((type) == PC_SLICE_TYPE_FAT12) \
-   || ((type) == PC_SLICE_TYPE_FAT16_LT32M) \
-   || ((type) == PC_SLICE_TYPE_FAT16_GT32M) \
-   || ((type) == PC_SLICE_TYPE_FAT16_LBA) \
-   || ((type) == PC_SLICE_TYPE_FAT32) \
-   || ((type) == PC_SLICE_TYPE_FAT32_LBA))
+     (((type & (~PC_SLICE_TYPE_HIDDEN_FLAG)) == PC_SLICE_TYPE_FAT12) \
+   || ((type & (~PC_SLICE_TYPE_HIDDEN_FLAG)) ==
PC_SLICE_TYPE_FAT16_LT32M) \
+   || ((type & (~PC_SLICE_TYPE_HIDDEN_FLAG)) ==
PC_SLICE_TYPE_FAT16_GT32M) \
+   || ((type & (~PC_SLICE_TYPE_HIDDEN_FLAG)) == PC_SLICE_TYPE_FAT16_LBA)
\
+   || ((type & (~PC_SLICE_TYPE_HIDDEN_FLAG)) == PC_SLICE_TYPE_FAT32) \
+   || ((type & (~PC_SLICE_TYPE_HIDDEN_FLAG)) == PC_SLICE_TYPE_FAT32_LBA))

 #define IS_PC_SLICE_TYPE_EXTENDED(type)*\
   (((type) == PC_SLICE_TYPE_EXTENDED)*\
@@ -135,9 +138,6 @@
    || (type) == (PC_SLICE_TYPE_NETBSD | (fs) << 8))

 #define IS_PC_SLICE_TYPE_BSD(type)*IS_PC_SLICE_TYPE_BSD_WITH_FS(type,0)
-
-/* This is not a flag actually, but used as if it were a flag.  */
-#define PC_SLICE_TYPE_HIDDEN_FLAG*0x10

 /*
  *  *BSD-style disklabel & partition definitions.


--
Thomas Schweikle <[EMAIL PROTECTED]>

Reply via email to