Hi Daniel,

Cockpit looks in `/etc/os-release`[1] for the `VARIANT` and `VARIANT_ID` keys. 
You can override the keys there.

Lars

[1] https://www.freedesktop.org/software/systemd/man/os-release.html

On Sat, Dec 14, 2019, at 20:27, Daniel Hilst wrote:
> Hi
> 
> I'm trying to change the branding folder that is used by cockpit, I read this 
> in at  
> https://github.com/cockpit-project/cockpit/blob/master/doc/branding.md#how-cockpit-selects-branding
> 
> I tried by placing it at systemd unit file, here is how
> 
> # cat /etc/systemd/system/cockpit.service 
> [Unit]
> Description=Cockpit Web Service
> Documentation=man:cockpit-ws(8)
> Requires=cockpit.socket
> 
> [Service]
> ExecStartPre=/usr/sbin/remotectl certificate --ensure --user=root 
> --group=cockpit-ws --selinux-type=etc_t
> ExecStart=/usr/libexec/cockpit-ws
> PermissionsStartOnly=true
> User=cockpit-ws
> Group=cockpit-ws
> Environment=VARIANT_ID=MyVariant #<-- my variant
> 
> Also I tried to stop cockpit.service and run with the variable setted, no 
> effect
> 
> I copied centos folder to centos-MyVariant and changed the logo image. I 
> expected to see the new image, but nothing changed
> 
> Any ideas? What I'm missing?
> 
> _______________________________________________
> cockpit-devel mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedorahosted.org/archives/list/[email protected]
> 
_______________________________________________
cockpit-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]

Reply via email to