bdisk/extra/pre-build.d/root/post-build.sh

28 lines
535 B
Bash
Raw Normal View History

2015-01-10 15:50:34 -05:00
#!/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
2015-01-12 17:40:06 -05:00
#apacman --noconfirm --noedit -S --needed linux
2015-01-10 15:50:34 -05:00
2015-01-12 17:40:06 -05:00
export ABSROOT=/tmp
2015-01-10 15:50:34 -05:00
abs core/linux
cd /tmp/core/linux
customizepkg --modify
2015-01-12 17:40:06 -05:00
chown -R nobody:nobody /tmp/core/linux
2015-01-10 15:50:34 -05:00
sudo -u nobody makepkg
set -e
2015-01-12 17:40:06 -05:00
for i in $(ls -1 linux-*.pkg.tar.xz | sort);
do
pacman --noconfirm -U ${i}
done
2015-01-10 15:50:34 -05:00
echo "Done."