From 2dbfaf4f0540877c96dbbb73688ef02591e30d23 Mon Sep 17 00:00:00 2001 From: Michal Date: Sat, 30 Jul 2022 18:43:38 +0100 Subject: [PATCH] Fixed mirrorlist and desktop icon --- chrooted.sh | 8 +++++--- .../airootfs/etc/systemd/system/mirrorlist.service | 11 +++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 crystal/airootfs/etc/systemd/system/mirrorlist.service diff --git a/chrooted.sh b/chrooted.sh index 89f0a3f..02f2022 100755 --- a/chrooted.sh +++ b/chrooted.sh @@ -6,7 +6,7 @@ glib-compile-schemas /usr/share/glib-2.0/schemas # User setup useradd -mG wheel crystal -usermod -c "Password: \"crystal\"" crystal +usermod -c "Password // \"crystal\"" crystal usermod -p $(echo "crystal" | openssl passwd -6 -stdin) crystal usermod -p $(echo "crystal" | openssl passwd -6 -stdin) root chsh -s /usr/bin/zsh crystal @@ -16,12 +16,14 @@ flatpak install -y --noninteractive /usr/share/jade-gui/jade-gui.flatpak # Desktop icon for Jade's GUI mkdir -p /home/crystal/Desktop -cp /usr/share/applications/Jade.desktop /home/crystal/Desktop/Install.desktop +cp \ + /var/lib/flatpak/exports/share/applications/al.getcryst.jadegui.desktop \ + /home/crystal/Desktop/Install.desktop chown -R crystal:crystal /home/crystal/ # Services systemctl enable NetworkManager -systemctl enable reflector +systemctl enable mirrorlist systemctl enable gdm # Hostname and Locale diff --git a/crystal/airootfs/etc/systemd/system/mirrorlist.service b/crystal/airootfs/etc/systemd/system/mirrorlist.service new file mode 100644 index 0000000..fcf9b44 --- /dev/null +++ b/crystal/airootfs/etc/systemd/system/mirrorlist.service @@ -0,0 +1,11 @@ +[Unit] +Description=Generates Base Crystal ISO Mirrorlist +Requires=network-online.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/bin/bash -c "reflector > /etc/pacman.d/mirrorlist" + +[Install] +WantedBy=multi-user.target