Bug 2364442

Summary: regression: Fedora IoT 42 ostree ISO Anaconda installer doesn't run %post kickstart sections
Product: [Fedora] Fedora Reporter: Andrey <butirsky>
Component: image-builderAssignee: Simon de Vlieger <cmdr>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint, cmdr, go-sig, kkoukiou, miabbott, osbuilders, w
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://github.com/rhinstaller/anaconda/discussions/6397
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-28 13:00:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1269538    
Attachments:
Description Flags
anaconda.log without %post script run none

Description Andrey 2025-05-06 17:22:13 UTC
This is regression.
The last known working IoT ISO is:
Fedora-IoT-ostree-41-20241027.0.x86_64.iso

With the very same kickstart, Fedora IoT 41 does run %post sections:

# grep -irI %post /tmp/
/tmp/anaconda.log:15:59:53,292 INF kickstart.script: Running kickstart %%post script(s)
/tmp/anaconda.log:15:59:57,469 INF kickstart.script: All kickstart %%post script(s) have been run

I do not see any attempts on Fedora IoT 42. %pre section runs, though.

Reproducible: Always

Steps to Reproduce:
1. Boot Fedora IoT 42 ostree ISO with any custom ks containing %post section.
2. Let system autoinstall.
3. Without reboot, from the installer console, run:
# grep -irI %post /tmp/
Actual Results:
No relevant "%post" lines found anywhere in /tmp/* files.

Expected Results:
Something like this:
# grep -irI %post /tmp/
/tmp/anaconda.log:15:59:53,292 INF kickstart.script: Running kickstart %%post script(s)
/tmp/anaconda.log:15:59:57,469 INF kickstart.script: All kickstart %%post script(s) have been run

Comment 1 Peter Robinson 2025-05-06 20:01:43 UTC
Can you report this upstream here please: https://github.com/fedora-iot/iot-distro/issues

Comment 3 Andrey 2025-05-29 11:49:09 UTC
Please note I don't see the issue with Fedora Silverblue ISO,
so it's yet unknown if it's Anaconda or IoT issue.

Comment 4 Andrey 2025-07-17 17:05:53 UTC
Created attachment 2097504 [details]
anaconda.log without %post script run

Added "anaconda.log" with the problem - no %post section run there, but %pre is present.

Comment 5 Simon de Vlieger 2025-07-18 08:55:36 UTC
I've re-assigned this issue to image-builder; an upstream PR has been created: https://github.com/osbuild/images/pull/1672

Comment 6 Simon de Vlieger 2025-10-28 13:00:19 UTC
Upstream PR was merged (a while back) I forgot to update the downstream issues or attach them to bodhi. This has been resolved.