Skip to content

Fixed device file modes in test machine chroot - #2525

Merged
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:chroot-device-modes
Oct 5, 2026
Merged

larsewi merged 1 commit into
cfengine:masterfrom
larsewi:chroot-device-modes

Conversation

@larsewi

@larsewi larsewi commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Since RsyncProject/rsync@808daef3e9a7 rsync skips chmod on device files when no symlink-safe chmod is available. This left /dev/null in the chroot unwritable for non-root users on RHEL 8. Now copies the device file modes from the host.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech

Build Status

Since RsyncProject/rsync@808daef3e9a7 rsync
skips chmod on device files when no symlink-safe chmod is available
(glibc < 2.32 and kernel < 6.6). This left /dev/null in the chroot
unwritable for non-root users on RHEL 8 with rsync 3.1.3-28.el8_10.
Now copies the device file modes from the host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@craigcomstock

craigcomstock commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Build Status

@larsewi
larsewi merged commit 84008f2 into cfengine:master Oct 5, 2026
1 check passed
@larsewi
larsewi deleted the chroot-device-modes branch October 5, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants