[molecules] improve ServerBase spin, remove NetworkManager, hald and avahi from init
This commit is contained in:
parent
d1029a7ae6
commit
10abebbf92
@ -20,7 +20,7 @@ inner_chroot_script: /sabayon/scripts/remaster_generic_inner_chroot_script.sh
|
|||||||
|
|
||||||
# Inner chroot script command, to be executed inside destination chroot after
|
# Inner chroot script command, to be executed inside destination chroot after
|
||||||
# packages installation and removal
|
# packages installation and removal
|
||||||
# inner_chroot_script_after: /sabayon/scripts/remaster_generic_inner_chroot_script_after.sh fluxbox
|
inner_chroot_script_after: /sabayon/scripts/remaster_nox_inner_chroot_script_after.sh serverbase
|
||||||
|
|
||||||
# Outer chroot script command, to be executed outside destination chroot before
|
# Outer chroot script command, to be executed outside destination chroot before
|
||||||
# before entering it (and AFTER inner_chroot_script)
|
# before entering it (and AFTER inner_chroot_script)
|
||||||
|
32
scripts/remaster_nox_inner_chroot_script_after.sh
Executable file
32
scripts/remaster_nox_inner_chroot_script_after.sh
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# For Spins without X.Org
|
||||||
|
flavour="${1}"
|
||||||
|
|
||||||
|
rc-update del installer-gui boot
|
||||||
|
rc-update del x-setup boot
|
||||||
|
rc-update del hald boot
|
||||||
|
rc-update del NetworkManager default
|
||||||
|
rc-update del avahi-daemon default
|
||||||
|
|
||||||
|
# re-enable rc_hotplug
|
||||||
|
sed -i 's:^rc_hotplug=.*:rc_hotplug="*":g' /etc/rc.conf
|
||||||
|
|
||||||
|
# install-data dir is really not needed
|
||||||
|
rm -rf /install-data
|
||||||
|
|
||||||
|
mount -t proc proc /proc
|
||||||
|
/lib/rc/bin/rc-depend -u
|
||||||
|
|
||||||
|
# Generate openrc cache
|
||||||
|
/etc/init.d/savecache start
|
||||||
|
/etc/init.d/savecache zap
|
||||||
|
|
||||||
|
ldconfig
|
||||||
|
ldconfig
|
||||||
|
umount /proc
|
||||||
|
|
||||||
|
emaint --fix world
|
||||||
|
|
||||||
|
rm -rf /var/lib/entropy/*cache*
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user