WizardKit/build-wk
Alan Mason 1297501714 2017-02: Retroactive Updates
* Switched to Firefox
  * Midori was crashing too often
* Rewrote the wallpaper code
  * Should fix issue where no wallpaper was shown if running from UFD
* The pacman mirrorlist is now a static list.
  * This needs manually updated at build-time

Cleanup
  * Disabled console screen blanking
  * Fixed typo preventing aliases from loading correctly
  * mount-all-volumes now removes /media/hhtech properly
  * Removed leftover netctl files
  * Removed leftover nodm

BREAKING: Moved config files back inside UFD/arch instead of UFD/config
2017-12-06 17:56:57 -08:00

31 lines
734 B
Bash

#!/bin/bash
# Set Vars
LOG_DIR="/D_Drive/ArchBuilds/BuildLogs"
OUT_DIR="/D_Drive/ArchBuilds"
TMP_DIR="/ScratchDir"
DATE="$(date +%F)"
DATETIME="$(date +%F_%H%M)"
# Ensure that we're running with root privileges
if [[ "$EUID" -ne 0 ]]; then
echo "Please run with root permissions (i.e. sudo $0)"
exit
fi
# Set permissions
echo "Setting permissions..."
chown root.root archlive -R
# Build ISO
mkdir $LOG_DIR
mkdir $OUT_DIR
mkdir $TMP_DIR
./archlive/build.sh -N "wk-arch" -V "$DATE" -L "WK_ARCH" -w "$TMP_DIR" -o "$OUT_DIR" -v | tee -a "$LOG_DIR/$DATETIME.log"
# Cleanup
echo "Removing temp files..."
rm "$TMP_DIR" -Rf | tee -a "$LOG_DIR/$DATETIME.log"
echo "Reverting permissions..."
chown builduser.builduser archlive -R