Bug 2481186 - syslinux-extlinux-6.04-0.35.fc44.x86_64 %post script can fail, breaking RPM transaction
Summary: syslinux-extlinux-6.04-0.35.fc44.x86_64 %post script can fail, breaking RPM t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: syslinux
Version: 44
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-25 13:42 UTC by Petr Pisar
Modified: 2026-07-29 00:59 UTC (History)
7 users (show)

Fixed In Version: syslinux-6.04-0.37.fc45 syslinux-6.04-0.37.fc44
Clone Of:
Environment:
Last Closed: 2026-07-29 00:59:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2026-05-25 13:42:29 UTC
It was reported in bug #2476993 that a DNF5 offline system upgrade failed. It seems that one of the causes was a non-zero exit code of syslinux-extlinux-6.04-0.35.fc44.x86_64 %post scriptlet:

2026-05-18T01:09:07+0000 [825] INFO RPM callback open file "/usr/lib/sysimage/libdnf5/offline/./packages/syslinux-extlinux-6.04-0.35.fc44.
x86_64.rpm"
2026-05-18T01:09:07+0000 [825] INFO RPM callback install start "syslinux-extlinux-0:6.04-0.35.fc44.x86_64" total 211856
2026-05-18T01:09:07+0000 [825] INFO RPM callback install stop "syslinux-extlinux-0:6.04-0.35.fc44.x86_64" amount 211856 total 211856
2026-05-18T01:09:07+0000 [825] INFO RPM callback start %triggerin scriptlet "filesystem-0:3.18-52.fc44.x86_64"
2026-05-18T01:09:07+0000 [825] INFO RPM callback stop %triggerin scriptlet "filesystem-0:3.18-52.fc44.x86_64" return code 0
2026-05-18T01:09:07+0000 [825] INFO RPM callback start %post scriptlet "syslinux-extlinux-0:6.04-0.35.fc44.x86_64"
2026-05-18T01:09:07+0000 [825] INFO [scriptlet] /boot/extlinux is device /dev/sda1
2026-05-18T01:09:07+0000 [825] INFO [scriptlet] extlinux: no previous syslinux boot sector found
2026-05-18T01:09:07+0000 [825] WARNING [rpm] %post(syslinux-extlinux-6.04-0.35.fc44.x86_64) scriptlet failed, exit status 1
2026-05-18T01:09:07+0000 [825] INFO RPM callback stop %post scriptlet "syslinux-extlinux-0:6.04-0.35.fc44.x86_64" return code 1
2026-05-18T01:09:07+0000 [825] WARNING RPM callback non-critical error in %post scriptlet "syslinux-extlinux-0:6.04-0.35.fc44.x86_64"
2026-05-18T01:09:07+0000 [825] INFO RPM callback close file

According to Fedora packaging guidelines <https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_syntax> "All scriptlets MUST exit with the zero exit status."

This is not true for syslinux-extlinux. See F45 scriptlet:

$ rpm -q --scripts -p ./syslinux-extlinux-6.04-0.36.fc45.x86_64.rpm
postinstall scriptlet (using /bin/sh):
# If we have a /boot/extlinux.conf file, assume extlinux is our bootloader
# and update it.
if [ -f /boot/extlinux/extlinux.conf ]; then \
        extlinux --update /boot/extlinux ; \
elif [ -f /boot/extlinux.conf ]; then \
        mkdir -p /boot/extlinux && \
        mv /boot/extlinux.conf /boot/extlinux/extlinux.conf && \
        extlinux --update /boot/extlinux ; \
fi

If a user has one of the /boot/extlinux/extlinux.conf of /boot/extlinux.conf file on his system, but he does not hot have extlinux installed into the boot sector, non-zero exit error is returned:

# extlinux --update /boot/extlinux
/boot/extlinux is device /dev/sda1
extlinux: no previous syslinux boot sector found
# echo $?
1

Please guard the scriptlet against returning non-zero code.

Comment 1 Leo Sandoval 2026-05-25 19:26:52 UTC
Hi Petr,

we will attend this soon. It is a simple change on spec I believe.

Comment 2 John Dodson 2026-07-09 02:42:57 UTC
I note that this is still broken in FC44...

# dnf reinstall syslinux-extlinux
Updating and loading repositories:
 Fedora 44 - x86_64 - Updates           100% |   4.8 KiB/s |  12.6 KiB |  00m03s
 RPM Fusion for Fedora 44 - Free tainte 100% |   6.2 KiB/s |  11.0 KiB |  00m02s
Repositories loaded.
Package                        Arch   Version                 Reposito      Size
Reinstalling:
 syslinux-extlinux             x86_64 0:6.04-0.35.fc44        fedora   205.9 KiB
   replacing syslinux-extlinux x86_64 0:6.04-0.35.fc44        <unknown 205.9 KiB

Transaction Summary:
 Reinstalling:       1 package
 Replacing:          1 package

Total size of inbound packages is 131 KiB. Need to download 0 B.
After this operation, 0 B extra will be used (install 206 KiB, remove 206 KiB).
Is this ok [y/N]: y
[1/1] syslinux-extlinux-0:6.04-0.35.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[1/1] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
Running transaction
[1/4] Verify package files              100% |  50.0   B/s |   1.0   B |  00m00s
[2/4] Prepare transaction               100% |   2.0   B/s |   2.0   B |  00m01s
[3/4] Reinstalling syslinux-extlinux-0: 100% |   2.7 MiB/s | 206.9 KiB |  00m00s
>>> Running %post scriptlet: syslinux-extlinux-0:6.04-0.35.fc44.x86_64
>>> Non-critical error in %post scriptlet: syslinux-extlinux-0:6.04-0.35.fc44.x86_64
>>> Scriptlet output:
>>> /boot/extlinux is device /dev/sda1
>>> extlinux: no previous syslinux boot sector found
>>> 
>>> [RPM] %post(syslinux-extlinux-6.04-0.35.fc44.x86_64) scriptlet failed, exit status 1
[4/4] Removing syslinux-extlinux-0:6.04 100% |   4.0   B/s |   6.0   B |  00m01s
Transaction failed: Rpm transaction failed.

Comment 3 Nicolas Frayer 2026-07-09 22:28:29 UTC
Hi,

I've pushed an update for syslinux in rawhide, please give it a try.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-9d149fae81

Thanks,

Nicolas

Comment 4 Petr Pisar 2026-07-10 12:12:58 UTC
I confirm it is fixed in syslinux-extlinux-0:6.04-0.37.fc45.x86_64.

Comment 5 John Dodson 2026-07-10 12:26:10 UTC
Thanks for your efforts on this Peter.
Is it likely to be pushed to fc44?

Comment 6 Nicolas Frayer 2026-07-10 13:16:51 UTC
@jwadodson a merge request has been created to merge this into f44 as well.

Thanks,

Nicolas

Comment 7 Fedora Update System 2026-07-13 17:01:52 UTC
FEDORA-2026-f2890008ab (syslinux-6.04-0.37.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f2890008ab

Comment 8 Fedora Update System 2026-07-14 01:41:25 UTC
FEDORA-2026-f2890008ab has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-f2890008ab`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-f2890008ab

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 John Dodson 2026-07-15 03:14:56 UTC
Yes, it works thanks

dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-f2890008ab
...
Repositories loaded.
Package                                 Arch   Version                 Reposit      Size
Upgrading:
 syslinux                               x86_64 0:6.04-0.37.fc44        updates   1.0 MiB
   replacing syslinux                   x86_64 0:6.04-0.35.fc44        fedora    1.0 MiB
 syslinux-extlinux                      x86_64 0:6.04-0.37.fc44        updates 209.3 KiB
   replacing syslinux-extlinux          x86_64 0:6.04-0.35.fc44        <unknow 205.9 KiB
 syslinux-extlinux-nonlinux             noarch 0:6.04-0.37.fc44        updates 982.3 KiB
   replacing syslinux-extlinux-nonlinux noarch 0:6.04-0.35.fc44        fedora  975.7 KiB
 syslinux-nonlinux                      noarch 0:6.04-0.37.fc44        updates   1.8 MiB
   replacing syslinux-nonlinux          noarch 0:6.04-0.35.fc44        fedora    1.8 MiB

Transaction Summary:
 Upgrading:          4 packages
 Replacing:          4 packages

Total size of inbound packages is 2 MiB. Need to download 2 MiB.
After this operation, 33 KiB extra will be used (install 4 MiB, remove 4 MiB).
Is this ok [y/N]: y
[1/4] syslinux-extlinux-0:6.04-0.37.fc4 100% |   3.0 MiB/s | 133.1 KiB |  00m00s
[2/4] syslinux-nonlinux-0:6.04-0.37.fc4 100% |  10.1 MiB/s | 598.5 KiB |  00m00s
[3/4] syslinux-extlinux-nonlinux-0:6.04 100% | 230.9 KiB/s | 395.2 KiB |  00m02s
[4/4] syslinux-0:6.04-0.37.fc44.x86_64  100% | 256.3 KiB/s | 570.1 KiB |  00m02s
--------------------------------------------------------------------------------
[4/4] Total                             100% | 758.2 KiB/s |   1.7 MiB |  00m02s
Running transaction
[ 1/10] Verify package files            100% | 160.0   B/s |   4.0   B |  00m00s
[ 2/10] Prepare transaction             100% |   9.0   B/s |   8.0   B |  00m01s
[ 3/10] Upgrading syslinux-0:6.04-0.37. 100% |  25.6 MiB/s |   1.1 MiB |  00m00s
[ 4/10] Upgrading syslinux-nonlinux-0:6 100% |  64.5 MiB/s |   1.8 MiB |  00m00s
[ 5/10] Upgrading syslinux-extlinux-non 100% |  53.8 MiB/s | 990.8 KiB |  00m00s
[ 6/10] Upgrading syslinux-extlinux-0:6 100% |   2.9 MiB/s | 210.2 KiB |  00m00s
>>> Running %post scriptlet: syslinux-extlinux-0:6.04-0.37.fc44.x86_64
>>> Finished %post scriptlet: syslinux-extlinux-0:6.04-0.37.fc44.x86_64
>>> Scriptlet output:
>>> /boot/extlinux is device /dev/sda1
>>> extlinux: no previous syslinux boot sector found
>>> 
[ 7/10] Removing syslinux-extlinux-0:6. 100% | 428.0   B/s |   6.0   B |  00m00s
[ 8/10] Removing syslinux-extlinux-nonl 100% |   4.3 KiB/s |  62.0   B |  00m00s
[ 9/10] Removing syslinux-0:6.04-0.35.f 100% |   1.8 KiB/s |  61.0   B |  00m00s
[10/10] Removing syslinux-nonlinux-0:6. 100% |  55.0   B/s |  83.0   B |  00m02s
Complete!

Comment 10 Fedora Update System 2026-07-29 00:59:40 UTC
FEDORA-2026-f2890008ab (syslinux-6.04-0.37.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.