Files
molecules/scripts/remaster_serverbase_inner_chroot_script_after.sh
2013-04-27 14:52:45 +02:00

47 lines
933 B
Bash
Executable File

#!/bin/bash
/usr/sbin/env-update
. /etc/profile
sd_enable() {
[[ -x /usr/bin/systemctl ]] && \
systemctl --no-reload -f enable "${1}.service"
}
sd_disable() {
[[ -x /usr/bin/systemctl ]] && \
systemctl --no-reload -f disable "${1}.service"
}
rc-update del installer-gui boot
rc-update del x-setup boot
rc-update del avahi-daemon default
sd_disable installer-gui
sd_disable avahi-daemon
# A RUNNING NetworkManager is required by Anaconda !!
# re-enable rc_hotplug
# sed -i 's:^rc_hotplug=.*:rc_hotplug="*":g' /etc/rc.conf
# rc-update del NetworkManager default
# install-data dir is really not needed
rm -rf /install-data
/lib/rc/bin/rc-depend -u
# Generate openrc cache
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
/etc/init.d/savecache start
/etc/init.d/savecache zap
ldconfig
ldconfig
emaint --fix world
rm -rf /var/lib/entropy/*cache*
exit 0