bdisk/extra/pre-build.d/root/post-build.sh
2015-01-12 17:40:06 -05:00

28 lines
535 B
Bash
Executable File

#!/bin/bash
set -e
apacman --noconfirm --noedit -S --needed customizepkg-scripting
echo -n "Compiling kernel sources..."
set +e
## Uncomment below and remove manual ABS/makepkg when https://github.com/oshazard/apacman/issues/2 is fulfulled
#apacman --noconfirm --noedit -S --needed linux
export ABSROOT=/tmp
abs core/linux
cd /tmp/core/linux
customizepkg --modify
chown -R nobody:nobody /tmp/core/linux
sudo -u nobody makepkg
set -e
for i in $(ls -1 linux-*.pkg.tar.xz | sort);
do
pacman --noconfirm -U ${i}
done
echo "Done."