From 3ed8ca677169202e50884e0aef332b50298f9ae1 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Sat, 27 Jan 2024 00:38:17 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20make=20motd=20and=20dm=20generat?= =?UTF-8?q?ed=20during=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ .../systemd/system/display-manager.service | 1 - util-iso.sh | 26 +++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) delete mode 120000 archiso/airootfs/etc/systemd/system/display-manager.service diff --git a/.gitignore b/.gitignore index fcadf9d..8009d74 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ meta-data archiso/packages.x86_64 archiso/airootfs/etc/gdm/ archiso/airootfs/etc/pacman.d/ +archiso/airootfs/etc/systemd/system/display-manager.service +archiso/airootfs/etc/motd diff --git a/archiso/airootfs/etc/systemd/system/display-manager.service b/archiso/airootfs/etc/systemd/system/display-manager.service deleted file mode 120000 index 56f1df2..0000000 --- a/archiso/airootfs/etc/systemd/system/display-manager.service +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/systemd/system/sddm.service \ No newline at end of file diff --git a/util-iso.sh b/util-iso.sh index 7d10253..e24a038 100755 --- a/util-iso.sh +++ b/util-iso.sh @@ -78,6 +78,30 @@ DefaultSession=gnome-xorg.desktop EOF } +generate_motd() { + cat << 'EOF' > ${src_dir}/archiso/airootfs/etc/motd +This ISO is based on ArchLinux ISO modified to provide Installation Environment for CachyOS. +https://cachyos.org + +CachyOS Archiso Sources: +https://github.com/cachyos/cachyos-live-iso + +ArchLinux ISO Source: +https://gitlab.archlinux.org/archlinux/archiso + +Calamares is used as GUI installer: +https://github.com/calamares/calamares + +Live environment will start now and let you install CachyOS to disk. + +Getting help at the forum: https://forum.cachyos.org + +Welcome to your CachyOS! + +                                           +EOF +} + fetch_cachyos_mirrorlist() { mkdir -p ${src_dir}/archiso/airootfs/etc/pacman.d local _mirrorlist_url="https://github.com/CachyOS/CachyOS-PKGBUILDS/raw/master/cachyos-mirrorlist/cachyos-mirrorlist" @@ -100,6 +124,8 @@ prepare_profile(){ # Fetch up-to-date version of CachyOS repo mirrorlist fetch_cachyos_mirrorlist + generate_motd + rm -f ${src_dir}/archiso/airootfs/etc/systemd/system/display-manager.service if [ "$profile" == "kde" ]; then cp ${src_dir}/archiso/packages_kde.x86_64 ${src_dir}/archiso/packages.x86_64