No. Since the read-only sysroot was disabled recently, the version I was using did not have read-only sysroot.
I don’t think we have any specific plans, but you can use a separate mount namespace to get around your current problem.
[core@localhost ~]$ cat /proc/mounts | grep sysroot
/dev/sdb4 /sysroot xfs ro,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota 0 0
[core@localhost ~]$ sudo su -
[root@localhost ~]# unshare --mount
[root@localhost ~]# cat /proc/mounts | grep sysroot
/dev/sdb4 /sysroot xfs ro,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota 0 0
[root@localhost ~]# mount -o remount,rw /sysroot
[root@localhost ~]# cat /proc/mounts | grep sysroot
/dev/sdb4 /sysroot xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota 0 0
[root@localhost ~]# xfs_growfs /sysroot
meta-data=/dev/sdb4 isize=512 agcount=74, agsize=141760 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=1
data = bsize=4096 blocks=10354427, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 10354427 to 12975867
[root@localhost ~]# exit
logout
[root@localhost ~]# cat /proc/mounts | grep sysroot
/dev/sdb4 /sysroot xfs ro,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota 0 0
[root@localhost ~]# exit
logout
[core@localhost ~]$ cat /proc/mounts | grep sysroot
/dev/sdb4 /sysroot xfs ro,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota 0 0
If you’re running the growfs from a systemd unit you should be able to use MountFlags=slave
and the growfs should work I think.