Bug 2329379
| Summary: | rsync exit code check introduced in anaconda 42.16 causes KDE live installs to fail | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Adam Williamson <awilliam> | ||||
| Component: | anaconda | Assignee: | anaconda-maint | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | anaconda-maint, hagen_kirk, kkoukiou, mkolman, robatino, w | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2025-01-20 18:31:25 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 2291263 | ||||||
| Attachments: |
|
||||||
|
Description
Adam Williamson
2024-11-28 18:31:09 UTC
Proposing as a Beta blocker, as this causes installs of a release blocking image (KDE live) to fail. Note: I don't *think* this is disk space related. The openQA test runs with a 15G disk. I tested with a 20G disk. If this was space related, I'd expect the failure to look 'worse' on openQA, but it doesn't, it looks the same on both. Tested again with a 30G disk (using the 20241121.n.0 ISO), same result (rsync exits 23). It's not disk space. Now I look, the same actually happened on Workstation live installs too. Only KDE BIOS works; KDE UEFI, Workstation UEFI and Workstation BIOS all fail. oh, looking across multiple updates, it's just a bit flaky. *sometimes* it works, on both KDE and GNOME. Most of the time it crashes. There is the same issue (rsync not transferring file attributes) for GNOME image in Virtual Box on Mac: bug 2248759 - from early November. It's not exactly the same, though, as in this case there are no errors relating to setting attrs. There really are just no errors in the log from rsync, except the final one claiming there should be others :/ I'll attach the entire journal. Created attachment 2060269 [details]
full journal from an affected install
I was able to reproduce on UEFI system, on BIOS it worked.
I rerun rsync with verbose output enabled and it pointed to the root cause. The issue arises because rsync is attempting to set extended attributes (xattr), specifically security.selinux, on a filesystem (EFI partition) that does not support them.
I suggest to handle conditionally the rsync code in anaconda and set --no-xattrs for the boot/efi directory. Otherwise, we need to make sure that the KDE live ISOs do not carry selinux attributes on the EFI files.
...
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/mach_kernel","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/BOOT","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/BOOT/BOOTIA32.EFI","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/BOOT/BOOTX64.EFI","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/BOOT/fbia32.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/BOOT/fbx64.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/BOOTIA32.CSV","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/BOOTX64.CSV","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/gcdia32.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/gcdx64.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/grubia32.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/grubx64.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/mmia32.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/mmx64.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/shim.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/shimia32.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/EFI/fedora/shimx64.efi","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/System","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/System/Library","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/System/Library/CoreServices","security.selinux") failed: Operation not supported (95)
rsync: [receiver] rsync_xal_set: lsetxattr("/mnt/sysroot/boot/efi/System/Library/CoreServices/SystemVersion.plist","security.selinux") failed: Operation not supported (95)
^M 43,670 0% 42.51kB/s 0:00:01 (xfr#1, to-chk=0/220642)^M 43,670 0% 42.51kB/s 0:00:01 (xfr#1, to-chk=0/220642)
Number of files: 220,642 (reg: 170,307, dir: 17,549, link: 32,783, special: 3)
Number of created files: 1 (reg: 1)
Number of deleted files: 0
Number of regular files transferred: 1
Total file size: 7,641,355,589 bytes
Total transferred file size: 43,670 bytes
Literal data: 80,090 bytes
Matched data: 0 bytes
File list size: 6,094,147
File list generation time: 1.100 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 6,206,671
Total bytes received: 133
sent 6,206,671 bytes received 133 bytes 2,482,721.60 bytes/sec
total size is 7,641,355,589 speedup is 1,231.13
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.3.0]
This is not related to KDE. It fails on Workstation Live ISO as well the same exact way. Upstream fix: https://github.com/rhinstaller/anaconda/pull/6030 *** Bug 2248759 has been marked as a duplicate of this bug. *** This was resolved a while back. |