ldlinux: workaround for avoiding EDD error on btrfs probe
authorPaulo Alcantara <pcacjr@gmail.com>
Sun, 25 Dec 2011 19:33:15 +0000 (16:33 -0300)
committerPaulo Alcantara <pcacjr@gmail.com>
Sat, 11 Feb 2012 19:06:07 +0000 (16:06 -0300)
When installing Syslinux in an NTFS volume and then booting it up,
Syslinux will print on the screen an EDD error ocurred on btrfs probing
because that volume is not actually a btrfs one. Thus, to work around
that issue add ntfs_fs_ops structure just before the btrfs_fs_ops so
that fs_init() function will execute the ntfs_fs_ops->fs_init() function
first, and on success, btrfs_fs_ops->fs_init() won't be executed either.

Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
core/ldlinux.asm

index d4c5eec..a2f859d 100644 (file)
@@ -37,10 +37,10 @@ ROOT_FS_OPS:
                dd vfat_fs_ops
                extern ext2_fs_ops
                dd ext2_fs_ops
+               extern ntfs_fs_ops
+               dd ntfs_fs_ops
                extern btrfs_fs_ops
                dd btrfs_fs_ops
-        extern ntfs_fs_ops
-        dd ntfs_fs_ops
                dd 0
 
 %include "diskfs.inc"