Issue with touch: error "setting times"

I messed my system with SELinux.
I have an issue I discovered when trying to autorelabel system files with SELinux.


# touch /.autorelabel
touch: setting times of '/.autorelabel': No such file or directory

How can I solve this issue?

Thank you

If you’re on Silverblue, this probably isn’t going fix anything and might break stuff instead. What’s the reason for trying this?

This has nothing to do with my question

If you really just want to know how to autorelabel, boot with autorelabel=1 on the kernel command line.

How would that be the case? Does Silverblue not use SELinux?

It does, it’s just that autorelabel=1 is apparently rather dangerous right now: https://github.com/ostreedev/ostree/issues/1265#issuecomment-484557615