I need to add:
user_xattr,acl,barrier=1
to my /etc/fstab file. Is there a way to do this via the via shell script?
I only want to edit the '/
' mount.
Here is what I have before I manually edit it:
UUID=eb287d10-60a8-4a9a-9148-5f907fc7a8be / ext4 errors=remount-ro 0 1
Here is what it looks like after I manually add the lines:
UUID=eb287d10-60a8-4a9a-9148-5f907fc7a8be / ext4 user_xattr,acl,barrier=1,errors=remount-ro 0 1
I know that the sed -i
command will not work here because it only adds lines...
Also script be run on multiple computers so it has to be able to "know" that the UUID will be different.