root/core/ldlinux.asm

Revision 86b7ff130d503d57273f9085c351316cec664ecb, 1.4 KB (checked in by Paulo Alcantara <pcacjr@…>, 3 months ago)

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@…>

  • Property mode set to 100644
Line 
1; -*- fundamental -*- (asm-mode sucks)
2; ****************************************************************************
3;
4;  ldlinux.asm
5;
6;  A program to boot Linux kernels off an MS-DOS formatted floppy disk.  This
7;  functionality is good to have for installation floppies, where it may
8;  be hard to find a functional Linux system to run LILO off.
9;
10;  This program allows manipulation of the disk to take place entirely
11;  from MS-LOSS, and can be especially useful in conjunction with the
12;  umsdos filesystem.
13;
14;   Copyright 1994-2009 H. Peter Anvin - All Rights Reserved
15;   Copyright 2009 Intel Corporation; author: H. Peter Anvin
16;
17;  This program is free software; you can redistribute it and/or modify
18;  it under the terms of the GNU General Public License as published by
19;  the Free Software Foundation, Inc., 53 Temple Place Ste 330,
20;  Boston MA 02111-1307, USA; either version 2 of the License, or
21;  (at your option) any later version; incorporated herein by reference.
22;
23; ****************************************************************************
24
25%define IS_SYSLINUX 1
26%include "head.inc"
27
28;
29; Some semi-configurable constants... change on your own risk.
30;
31my_id           equ syslinux_id
32
33                section .rodata
34                alignz 4
35ROOT_FS_OPS:
36                extern vfat_fs_ops
37                dd vfat_fs_ops
38                extern ext2_fs_ops
39                dd ext2_fs_ops
40                extern ntfs_fs_ops
41                dd ntfs_fs_ops
42                extern btrfs_fs_ops
43                dd btrfs_fs_ops
44                dd 0
45
46%include "diskfs.inc"
Note: See TracBrowser for help on using the browser.