* Include extras/* in ISO * build-wk modifies build.sh before it is called * NetworkManager is back * Switched to Numix-Square icons * Added remount-rw script * Accessible in Thunar as custom action * Readded mesa-demos to fix inxi message * Removed xorg-video-ati (conflicts with AMDGPU) * Swapping nvidia in for nouveau (attempt to fix X for newer macs) * Added mbpfan-git * Added Mac fans script (set all fans to auto/max) * Fixed issue where udevil would use /media/$USER/Name for the first call
36 lines
964 B
Bash
36 lines
964 B
Bash
#!/bin/bash
|
|
#/srv/ArchBuilds
|
|
# Set Vars
|
|
LOG_DIR="/srv/ArchBuilds/BuildLogs"
|
|
OUT_DIR="/srv/ArchBuilds/isos"
|
|
TMP_DIR="/srv/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
|
|
|
|
# Modify build.sh
|
|
if ! grep -iq 'customize_iso' archlive/build.sh; then
|
|
sed -ir 's!run_once make_iso!# customize_iso\ncp -a ${script_path}/extra/* ${work_dir}/iso/\n\nrun_once make_iso!' archlive/build.sh
|
|
fi
|
|
|
|
# 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
|