Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1990720

Summary: syslinux: failed to create ldlinux.sys
Product: Red Hat Enterprise Linux 9 Reporter: YongkuiGuo <yoguo>
Component: libguestfsAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED CURRENTRELEASE QA Contact: YongkuiGuo <yoguo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.0CC: rjones, virt-maint
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.45.6-11.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:55:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
the whole log of guestfish none

Description YongkuiGuo 2021-08-06 04:21:18 UTC
Created attachment 1811342 [details]
the whole log of guestfish

Description of problem:
In guestfish, syslinux failed to create ldlinux.sys on RHEL-9.0.0-20210803.7 compose.


Version-Release number of selected component (if applicable):
libguestfs-1.45.6-10.el9.x86_64
glibc-2.33.9000-55.el9.x86_64

How reproducible:
100%

Steps:

1. On rhel9 host with RHEL-9.0.0-20210803.7 compose
# guestfish -N fs:vfat:2G syslinux /dev/sda1
libguestfs: error: syslinux: Error converting to codepage 850 Invalid argument
Cannot initialize 'S:'
Bad target s:/ldlinux.sys
syslinux: failed to create ldlinux.sys

2. Downgrade the glibc from 2.33.9000-55 to 2.33.9000-42, it works well.
# guestfish -N fs:vfat:2G syslinux /dev/sda1
# guestfish -a test1.img
><fs> run
><fs> mount /dev/sda1 /
><fs> ls /
ldlinux.c32
ldlinux.sys


Actual results:
As above

Expected results:
syslinux can be able to create ldlinux.sys.

Additional info:
No this issue on RHEL-8.5.0

Comment 1 Richard W.M. Jones 2021-08-06 07:29:44 UTC
It seems that syslinux requires the IBM850
(https://en.wikipedia.org/wiki/Code_page_850)
iconv converter to work.  I added the following patch which
fixes it for me:

https://github.com/libguestfs/libguestfs/commit/90a076fe19ead3c517ba2b45edfcc7fffec9860d

Comment 4 YongkuiGuo 2021-08-09 01:43:33 UTC
Verified with package:
libguestfs-1.45.6-11.el9.x86_64

Steps:

1.On rhel9 host with RHEL-9.0.0-20210807.7 compose
$ guestfish -N fs:vfat:2G syslinux /dev/sda1 : mount /dev/sda1 / : ls /
ldlinux.c32
ldlinux.sys

syslinux can be able to create ldlinux.sys successfully.

Comment 7 YongkuiGuo 2022-01-11 11:15:11 UTC
rjones, this issue exists in the latest RHEL-8.6.0-20220109.2 compose. Could you help clone this bug to RHEL8.6?


# rpm -q libguestfs
libguestfs-1.44.0-5.module+el8.6.0+13732+b2b9b31d.x86_64

# guestfish -N fs:vfat:2G syslinux /dev/sda1 : mount /dev/sda1 / : ls /
libguestfs: error: syslinux: Error converting to codepage 850 Invalid argument
Cannot initialize 'S:'
Bad target s:/ldlinux.sys
syslinux: failed to create ldlinux.sys

Comment 8 Richard W.M. Jones 2022-01-11 11:20:32 UTC
We decided to only fix high priority customer-facing bugs in RHEL 8.6.
Although this bug happens in RHEL 8, it doesn't have a customer case
attached or any indication that a customer asked for this, so I would
be inclined not to fix it.

Comment 9 YongkuiGuo 2022-01-11 11:23:09 UTC
(In reply to Richard W.M. Jones from comment #8)
> We decided to only fix high priority customer-facing bugs in RHEL 8.6.
> Although this bug happens in RHEL 8, it doesn't have a customer case
> attached or any indication that a customer asked for this, so I would
> be inclined not to fix it.

Ok, got it. Thanks.