Add bootstrap build scripts

main
axtloss 2 years ago
parent 153b137c66
commit d10d0f409c

@ -2,6 +2,7 @@
rm -fv *.iso rm -fv *.iso
cp crystal/pacman.conf crystal/airootfs/etc/. cp crystal/pacman.conf crystal/airootfs/etc/.
cp chrooted-iso.sh chrooted.sh
if [[ "$1" == "" ]]; then if [[ "$1" == "" ]]; then
WORKDIR=$(mktemp -d) WORKDIR=$(mktemp -d)

@ -0,0 +1,21 @@
#!/usr/bin/env bash
rm -fv *.tar.xz
cp crystal/pacman.conf crystal/airootfs/etc/.
cp chrooted-bootstrap.sh chrooted.sh
if [[ "$1" == "" ]]; then
WORKDIR=$(mktemp -d)
else
WORKDIR="$1"
if [[ ! -d "$WORKDIR" ]]; then
mkdir -p "$WORKDIR"
fi
fi
echo "Built on $(date +"%D @ %T EST")" > crystal/airootfs/etc/buildstamp
time sudo ./mkarchiso -m bootstrap -v -w $WORKDIR -o . crystal
sudo rm -rf $WORKDIR
sudo chown $USER:$USER *.iso

@ -0,0 +1,14 @@
#!/usr/bin/env bash
echo "Chrooted in the new system, running as $(whoami)"
# 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."

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

@ -0,0 +1,25 @@
# Arch packages
cowsay
curl
openbsd-netcat
openssh
pacman-contrib
reflector
tree
zsh
# Things we're hosting
base
filesystem
lsb-release
neofetch
pfetch
sudo
# Our packages
amethyst
# Text editors
micro
nano
vim
Loading…
Cancel
Save