Moved GSchema Compilation to chrooted.sh

main
Michal 2 years ago
parent a091424bcc
commit 298d6595f1
No known key found for this signature in database
GPG Key ID: A6A1A4DCB22279B9

@ -1,6 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
echo "Chrooted in the new system, running as $(whoami)" echo "Chrooted in the new system, running as $(whoami)"
# Compile GSchemas
glib-compile-schemas /usr/share/glib-2.0/schemas
# User setup # User setup
useradd -mG wheel crystal useradd -mG wheel crystal
usermod -p $(echo "crystal" | openssl passwd -6 -stdin) crystal usermod -p $(echo "crystal" | openssl passwd -6 -stdin) crystal
@ -19,7 +22,6 @@ chown -R crystal:crystal /home/crystal/
systemctl enable NetworkManager systemctl enable NetworkManager
systemctl enable reflector systemctl enable reflector
systemctl enable gdm systemctl enable gdm
systemctl enable crystal-gschema
# Hostname and Locale # Hostname and Locale
echo "crystal-live" > /etc/hostname echo "crystal-live" > /etc/hostname

@ -1,14 +0,0 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
[Unit]
Description=Builds Crystal ISO GSchemas
Before=gdm.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
[Install]
WantedBy=graphical.target
Loading…
Cancel
Save