remove sysinit setup stuff for Fedora 15 and earlier

This commit is contained in:
Will Woods 2011-09-07 20:36:22 -04:00
parent 9699e25045
commit e647a7e18a

View File

@ -33,8 +33,6 @@ move ${PYTHONDIR}/site-packages/pyanaconda/sitecustomize.py ${PYTHONDIR}/site-pa
## move_repos() ## move_repos()
move etc/yum.repos.d etc/anaconda.repos.d move etc/yum.repos.d etc/anaconda.repos.d
## set up system init stuff (systemd etc.)
%if int(product.version) > 15:
## Configure systemd to start anaconda ## Configure systemd to start anaconda
remove etc/systemd/system/default.target remove etc/systemd/system/default.target
remove etc/systemd/system/default.target.wants/* remove etc/systemd/system/default.target.wants/*
@ -46,29 +44,6 @@ move etc/yum.repos.d etc/anaconda.repos.d
append bin/login "#!/bin/bash" append bin/login "#!/bin/bash"
append bin/login "exec -l /bin/bash" append bin/login "exec -l /bin/bash"
chmod bin/login 755 chmod bin/login 755
%else:
## Set up loader as init
remove sbin/init
copy usr/${libdir}/anaconda/init sbin/init
symlink init sbin/halt
symlink init sbin/poweroff
symlink init sbin/reboot
remove sbin/runlevel sbin/telinit
## dracut does stuff to /run so these links won't work..
remove var/run
remove var/lock
move run var/run
symlink run/lock var/lock
## Since systemd won't be setting up sockets in /run for us..
mkdir var/run/dbus
## remove systemd init stuff
remove /cgroup /var/cache /var/log
removepkg systemd-units
removefrom NetworkManager /lib/systemd/*
removefrom dbus /lib/systemd/*
removefrom systemd /bin/* /lib/systemd/* /usr/share/systemd/*
removefrom util-linux /sbin/agetty
%endif
## remove unwanted systemd services ## remove unwanted systemd services
removefrom systemd-units /lib/systemd/system/kexec* removefrom systemd-units /lib/systemd/system/kexec*
removefrom systemd-units /lib/systemd/system/local-fs.target.wants/media.mount removefrom systemd-units /lib/systemd/system/local-fs.target.wants/media.mount