Hi. I am currently building a MaaS POC, and the goal is to be able to provision both Ubuntu and CentOS.
I have tried to add new users by modifying /etc/maas/preseed/curtin_userdata_centos
:
late_commands:
maas: [wget, '--no-proxy', '{{node_disable_pxe_url}}', '--post-data', '{{node_disable_pxe_data}}', '-0', '/dev/null']
10_adduser: ["curtin", "in-target", "--", "sh", "-c", "adduser maas"]
20_addpwd: ["curtin", "in-target", "--", "sh", "-c", "echo 'maas:maas'| chpasswd"]
30_addsudo: ["curtin", "in-target", "--", "sh", "-c", "usermod -aG wheel maas"]
It managed to get centos installed and reboot it, but it won’t get into the login screen. It has the error along the lines of:
avc denied open for path /etc/passwd sda
The MaaS version I’m using is 2.5 and I was using the centos image that is provided, no changes at all.
I have done the same curtin commands to ubuntu, and it seems to work fine on ubuntu.
Let me know if there’s any more details that I need to provide. Thanks in advance,
Regards,
De Lin