Bumped by Community user
2 edited title
| link

Changing xfs label of xfs root fiefile system

1
source | link

Changing xfs label of root fie system

I'm running a centos 7 server.
I want to change the label of the root file system (xfs).
xfs_admin -L "newlabel" /dev/mapper/centos-root fails because it can't operate on a mounted fs.

Is this possible anyhow?
Is there a way to run something like that during boot before the root fs is mounted?