4 if [ -z "$PWD" -o "$PWD" = "/" ]; then
5 echo "Don't run it from slash moron"
9 # Check for trashed %_tmppath by ~/.rpmmacros or else
10 if [ "$(rpm --eval '%_tmppath')" != "/var/tmp" ]; then
11 echo "Run with a clean %_tmppath rpm macro moron (start me from sudo su -)"
15 # Check if we have a root directory
16 if [ -d "$PWD/root" ]; then
17 read -p 'Confirm root directory destruction (yes/NO): ' confirm
18 if [ "$confirm" = "yes" -o "$confirm" = "YES" ]; then
20 elif [ ! "$confirm" = "no" -a ! "$confirm" = "NO" ]; then
21 echo "I need a clean directory"
24 read -p "I re-install over existing directory, press a key to continue"
32 LC_ALL
=C urpmi
--downloader=wget
--no-verify-rpm --no-recommends --noclean --auto --root=$PWD/root filesystem basesystem
-minimal rpm urpmi grub kernel
-server-latest vim
-enhanced wget
34 # Reinstall lockdev to fix missing lock group on binary
35 LC_ALL
=C urpmi
--downloader=wget
--no-verify-rpm --no-recommends --noclean --auto --replacepkgs --replacefiles --root=$PWD/root lockdev
38 LC_ALL
=C urpmi
--downloader=wget
--no-verify-rpm --no-recommends --noclean --auto --root=$PWD/root \
66 kernel
-firmware-nonfree \
75 mageia
-gfxboot-theme \
111 if [ ! -z "$LOCALE_ALT" -a "$LOCALE_ALT" != 'en' ]; then
112 LC_ALL
=C urpmi
--downloader=wget
--no-verify-rpm --no-recommends --noclean --auto --root=$PWD/root \
113 locales
-${LOCALE_ALT} \
114 man
-pages-${LOCALE_ALT}
118 if [ ! -z "${IHTTPD_RPM}" -a -f "${IHTTPD_RPM}" ]; then
119 LC_ALL
=C urpmi
--no-verify-rpm --no-recommends --noclean --auto --root=$PWD/root
${IHTTPD_RPM}