Script to convert yaml to fstab compatible format
|
|
%!s(int64=3) %!d(string=hai) anos | |
|---|---|---|
| LICENSE | %!s(int64=3) %!d(string=hai) anos | |
| Makefile | %!s(int64=3) %!d(string=hai) anos | |
| README.md | %!s(int64=3) %!d(string=hai) anos | |
| data.yaml | %!s(int64=3) %!d(string=hai) anos | |
| yaml2fstab.py | %!s(int64=3) %!d(string=hai) anos |
It a python script to convert yaml file to fstab compatible format
this script required python3 and pyyaml
yum install PyYAMLapt insatll python3-yamlpip3 install pyyaml/tmp/fstab to /etc/fstab in main scriptmake check to verify requirements before runningmake parse to see parsed datamake verify to verify parsed data before installing you should see 0 parse errors to ensure everything is OK.make install to add parsed data to /etc/fstabmake uninstall to remove modifications made by this script from /etc/fstab