[syslinux:master] ldlinux: workaround for avoiding EDD error on btrfs probe

syslinux-bot for Paulo Alcantara pcacjr at gmail.com
Fri Feb 24 10:45:12 PST 2012


Commit-ID:  86b7ff130d503d57273f9085c351316cec664ecb
Gitweb:     http://www.syslinux.org/commit/86b7ff130d503d57273f9085c351316cec664ecb
Author:     Paulo Alcantara <pcacjr at gmail.com>
AuthorDate: Sun, 25 Dec 2011 16:33:15 -0300
Committer:  Paulo Alcantara <pcacjr at gmail.com>
CommitDate: Sat, 11 Feb 2012 16:06:07 -0300

ldlinux: workaround for avoiding EDD error on btrfs probe

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 at gmail.com>

---
 core/ldlinux.asm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/ldlinux.asm b/core/ldlinux.asm
index d4c5eec..a2f859d 100644
--- a/core/ldlinux.asm
+++ b/core/ldlinux.asm
@@ -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"


More information about the Syslinux-commits mailing list