On Wed Apr 22, 2026 at 7:08 PM CEST, Pocket wrote:
>

[...]

>
> I have read the manual page and I do known what it does.
>
> What I am trying to ask here is why you would want to use chattr +i to 
> make mount points immutable?

As explained, the `chattr` doesn't impact the mounted filesystem. It
impacts the mount point.

So if there's nothing mounted on /boot you can't write files to it
because it's immutable.

If something is mounted, this filesystem is not impacted by the
immutable flag and the write will work.

This habit will function as a sanity check that you in fact do have
something mounted to /boot and aren't writing files to the filesystem
mounted at root.

Think of it like an `assert(boot_is_mounted)`.

Br,
Linus

Attachment: signature.asc
Description: PGP signature

Reply via email to