Merge pull request #3 from crystal-linux/development

Development
main
axtloss 2 years ago committed by GitHub
commit 75201da2ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
.gitignore vendored

@ -1,8 +1,3 @@
*.iso *.iso
*.tar.gz
sysroot/
sysroot.*
crystal/pacman.conf
crystal/airootfs/etc/pacman.conf crystal/airootfs/etc/pacman.conf
repo/ crystal/airootfs/etc/buildstamp
chrooted.sh

@ -10,10 +10,6 @@ else
fi fi
fi fi
# Copy pacman config to the airootfs
cp crystal/pacman.conf crystal/.
cp crystal/packages.x86_64 crystal/.
echo "Built on $(date +"%D @ %T EST")" > crystal/airootfs/etc/buildstamp echo "Built on $(date +"%D @ %T EST")" > crystal/airootfs/etc/buildstamp
time sudo ./mkarchiso -v -w $WORKDIR -o . crystal time sudo ./mkarchiso -v -w $WORKDIR -o . crystal

@ -0,0 +1,34 @@
#!/usr/bin/env bash
echo "Chrooted in the new system, running as $(whoami)"
# Compile GSchemas
glib-compile-schemas /usr/share/glib-2.0/schemas
# User setup
useradd -mG wheel 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
# Install Jade's GUI
flatpak install -y --noninteractive /usr/share/jade-gui/jade-gui.flatpak
# Desktop icon for Jade's GUI
mkdir -p /home/crystal/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 mirrorlist
systemctl enable gdm
# Hostname and Locale
echo "crystal-live" > /etc/hostname
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo "Configured the system. Exiting chroot."

@ -1 +0,0 @@
Built on 07/29/22 @ 23:50:24 EST

@ -1,15 +0,0 @@
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################
# With: reflector @/etc/xdg/reflector/reflector.conf
# When: 2022-07-29 20:11:36 UTC
# From: https://archlinux.org/mirrors/status/json/
# Retrieved: 2022-07-29 20:11:36 UTC
# Last Check: 2022-07-29 19:49:23 UTC
Server = https://mirror.theo546.fr/archlinux/$repo/os/$arch
Server = https://america.mirror.pkgbuild.com/$repo/os/$arch
Server = https://europe.mirror.pkgbuild.com/$repo/os/$arch
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
Server = https://sydney.mirror.pkgbuild.com/$repo/os/$arch

@ -1,11 +1,15 @@
PROMPT="%n@%m %~ %# " PROMPT="%n@%m %~ %# "
main() { credentials() {
clear
pfetch
echo "Live Credentials -" echo "Live Credentials -"
echo "crystal: crystal // root: crystal" echo "crystal: crystal // root: crystal"
echo echo
}
main() {
clear
pfetch
credentials
cowsay \ cowsay \
"Don't forget to set up Wi-Fi in the Settings app if required!" "Don't forget to set up Wi-Fi in the Settings app if required!"
} }

@ -1,5 +1,4 @@
Defaults env_keep += "PATH" Defaults env_keep += "PATH"
Defaults insults
root ALL=(ALL) NOPASSWD: ALL root ALL=(ALL) NOPASSWD: ALL
%wheel ALL=(ALL) NOPASSWD: ALL %wheel ALL=(ALL) NOPASSWD: ALL

@ -1,3 +0,0 @@
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin crystal --noclear %I 38400 linux

@ -1,12 +0,0 @@
[Unit]
Description=Installs Jade's GUI counterpart
Before=gdm.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/mount -o remount,size=2G /run/archiso/cowspace
ExecStart=/bin/flatpak install -y --noninteractive /usr/share/jade-gui/jade-gui.flatpak
[Install]
WantedBy=multi-user.target

@ -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

@ -0,0 +1,2 @@
[org.gnome.desktop.screensaver]
lock-enabled=true

@ -1,42 +1,41 @@
# Arch packages # Arch packages
archinstall
arch-install-scripts
arch-install-scripts arch-install-scripts
btrfs-progs btrfs-progs
cowsay cowsay
curl curl
curl
dosfstools dosfstools
edk2-shell edk2-shell
firefox
gdm
gparted
linux linux
linux-firmware linux-firmware
memtest86+ memtest86+
mesa
mkinitcpio mkinitcpio
mkinitcpio-archiso mkinitcpio-archiso
networkmanager networkmanager
zsh
curl
openbsd-netcat openbsd-netcat
openssh openssh
pacman-contrib pacman-contrib
reflector reflector
spice-vdagent
syslinux syslinux
systemd-sysvcompat systemd-sysvcompat
tree tree
xfsprogs xfsprogs
xorg
xorg-apps
xorg-xinit
zsh zsh
# GUI Target
firefox
gdm
gnome
gparted
mesa
spice-vdagent
xorg
# Things we're hosting # Things we're hosting
base base
filesystem filesystem
grub grub
lsb-release
neofetch neofetch
pfetch pfetch
sudo sudo
@ -46,7 +45,6 @@ amethyst
crystal-wallpapers crystal-wallpapers
jade jade
jade-gui jade-gui
onyx
# Text editors # Text editors
micro micro

@ -1,6 +1,6 @@
SERIAL 0 115200 SERIAL 0 115200
UI vesamenu.c32 UI vesamenu.c32
MENU TITLE Crystal MENU TITLE Crystal Linux
MENU BACKGROUND splash.png MENU BACKGROUND splash.png
MENU WIDTH 78 MENU WIDTH 78

@ -6,7 +6,7 @@ echo "Chrooting to $1, and running chrooted.sh"
cp chrooted.sh ${1}/. cp chrooted.sh ${1}/.
cp crystal/pacman.conf ${1}/. cp crystal/pacman.conf ${1}/.
chmod +x ${1}/chrooted.sh chmod +x ${1}/chrooted.sh
chroot $1 /bin/bash -c ./chrooted.sh arch-chroot $1 /bin/bash -c ./chrooted.sh
rm ${1}/chrooted.sh rm ${1}/chrooted.sh
echo "inject.sh completed." echo "inject.sh completed."

@ -1 +0,0 @@
21/06/2022 - from now on commit to this file to trigger a build lol, think of it like a weird message board - michal
Loading…
Cancel
Save