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 grub2 grub2
-mageia-theme kernel
-server-latest vim
-enhanced wget lockdev
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
39 LC_ALL
=C urpmi
--downloader=wget
--no-verify-rpm --no-recommends --noclean --auto --root=$PWD/root \
68 kernel
-firmware-nonfree \
77 mageia
-gfxboot-theme \
111 #XXX: to avoid boot time warning
112 # drakx-kbd-mouse-x11 \
113 # polkit-agent-none \
116 if [ ! -z "$LOCALE_ALT" -a "$LOCALE_ALT" != 'en' ]; then
117 LC_ALL
=C urpmi
--downloader=wget
--no-verify-rpm --no-recommends --noclean --auto --root=$PWD/root \
118 locales
-${LOCALE_ALT} \
119 man
-pages-${LOCALE_ALT}
123 if [ ! -z "${IHTTPD_RPM}" -a -f "${IHTTPD_RPM}" ]; then
124 LC_ALL
=C urpmi
--no-verify-rpm --no-recommends --noclean --auto --root=$PWD/root
${IHTTPD_RPM}