Re: Tip: Run a script after FAI install

2019-01-10 Diskussionsfäden Justin Cattle
Systemd is pretty good at this. Get FAI to install a unit file to run your thing, and add a unit option like ConditionPathExists=/foo/bar or ConditionPathExists=!/foo/bar Then make your thing touch or delete a flag file [ /foo/bar ] if successfully run. There you have it, a service/script that onl

Re: Tip: Run a script after FAI install

2019-01-10 Diskussionsfäden John G Heim
Well, it's not really to the point. Maybe my example was bad but there are lots of other reasons one might want to run a script after the install is finished. Actually, the reason this came up is that I want the linux cli screen reader to run on the first boot and then get disabled. But I just

Re: Tip: Run a script after FAI install

2019-01-10 Diskussionsfäden Brian Kroth
You can configure the nfsroot with your ldap configs so you can have them available during fai. I used this (at another UW department) for rescue consoles to support natural logins from admins. As far as the sudo config, why not just copy a sudoers (.d) snippet down that references the user during

Re: Tip: Run a script after FAI install

2019-01-09 Diskussionsfäden Martin Krämer
Hi John, if you are using LDAP - why not permitting a LDAP group (which already exists during install) and then configure sudo via LDAP? Thats how I solved it for my soho environment. See: https://www.sudo.ws/man/1.8.17/sudoers.ldap.man.html Kind Regards Martin On Wed, Jan 9, 2019, 22:06 John