This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: lightdm and groupinstalls for image
- Loading branch information
1 parent
1bd880f
commit d2e70da
Showing
5 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if test "$(id -u)" -gt "0" && test -d "$HOME"; then | ||
if test ! -e "$HOME"/.config/autostart/cinnamon-firstboot.desktop; then | ||
mkdir -p "$HOME"/.config/autostart | ||
cp -f /usr/share/ublue-os/firstboot/cinnamon-firstboot.desktop "$HOME"/.config/autostart | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# LightDM install from a container is currently bugged. | ||
# https://github.com/coreos/rpm-ostree/issues/4369 | ||
# https://github.com/fedora-silverblue/issue-tracker/issues/452 | ||
# This workaround creates the user before LightDM runs. | ||
|
||
[Unit] | ||
Description=Work around broken LightDM install | ||
Before=lightdm.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/etc/ublue-lightdm-workaround.sh | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d /var/cache/lightdm ]; then mkdir /var/cache/lightdm; fi | ||
if [ ! -d /var/log/lightdm ]; then mkdir /var/log/lightdm; fi | ||
if [ ! -d /var/lib/lightdm ]; then mkdir /var/lib/lightdm; fi | ||
if [ ! -d /var/lib/lightdm-data ]; then mkdir /var/lib/lightdm-data; fi | ||
|
||
getent group lightdm >/dev/null || groupadd -r lightdm | ||
getent passwd lightdm >/dev/null || useradd -g lightdm -M -d /var/lib/lightdm -s /sbin/nologin -r lightdm | ||
|
||
systemctl set-default graphical.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters