« Back to projectatomic.io
Ask Your Question

why "/" in atomic fedora is readonly?

asked 2016-03-11 14:56:26 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm using atomic fedora 23, I learned that "/usr" in atomic should be readonly, now I noticed that "/" is readonly too, but /proc/mounts still shows it rw mount. Could anyone help me to understand how to make "/" readonly happen?

-bash-4.3# pwd


-bash-4.3# touch a

touch: cannot touch ‘a’: Permission denied

-bash-4.3# cat /proc/mounts | grep "\/dev\/mapper\/atomicos-root \/ "

/dev/mapper/atomicos-root / xfs rw,relatime,attr2,inode64,noquota 0 0

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2016-03-15 06:35:35 +0000

Chengyuan Li gravatar image

The / has immutable flag which should be from /sysroot/ when ostree move the root.

lsattr -d /

----i----------- /

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]


Asked: 2016-03-11 14:56:26 +0000

Seen: 98 times

Last updated: Mar 15 '16