mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-11-25 08:33:09 +00:00
Use "systemctl set-default" to set the default target
This mimics what people actually are supposed to do on running systems.
This commit is contained in:
parent
c0884eadaf
commit
c245ee3524
@ -26,8 +26,7 @@ fedora-release-server
|
|||||||
|
|
||||||
# setup systemd to boot to the right runlevel
|
# setup systemd to boot to the right runlevel
|
||||||
echo -n "Setting default runlevel to multiuser text mode"
|
echo -n "Setting default runlevel to multiuser text mode"
|
||||||
rm -f /etc/systemd/system/default.target
|
systemctl set-default multi-user.target
|
||||||
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
|
||||||
echo .
|
echo .
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
@ -17,6 +17,6 @@ glibc-all-langpacks
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
# Explicitly set graphical.target as default as this is how initial-setup detects which version to run
|
# Explicitly set graphical.target as default as this is how initial-setup detects which version to run
|
||||||
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
|
systemctl set-default graphical.target
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
@ -136,8 +136,7 @@ passwd -l root
|
|||||||
|
|
||||||
# setup systemd to boot to the right runlevel
|
# setup systemd to boot to the right runlevel
|
||||||
echo -n "Setting default runlevel to multiuser text mode"
|
echo -n "Setting default runlevel to multiuser text mode"
|
||||||
rm -f /etc/systemd/system/default.target
|
systemctl set-default multi-user.target
|
||||||
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
|
||||||
echo .
|
echo .
|
||||||
|
|
||||||
# this is installed by default but we don't need it in virt
|
# this is installed by default but we don't need it in virt
|
||||||
|
@ -17,8 +17,7 @@ NetworkManager-wifi
|
|||||||
|
|
||||||
# setup systemd to boot to the right runlevel
|
# setup systemd to boot to the right runlevel
|
||||||
echo -n "Setting default runlevel to multiuser text mode"
|
echo -n "Setting default runlevel to multiuser text mode"
|
||||||
rm -f /etc/systemd/system/default.target
|
systemctl set-default multi-user.target
|
||||||
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
|
||||||
echo .
|
echo .
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
@ -193,8 +193,7 @@ sync /
|
|||||||
|
|
||||||
# setup systemd to boot to the right runlevel
|
# setup systemd to boot to the right runlevel
|
||||||
echo -n "Setting default runlevel to multiuser text mode"
|
echo -n "Setting default runlevel to multiuser text mode"
|
||||||
rm -f /etc/systemd/system/default.target
|
systemctl set-default multi-user.target
|
||||||
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
|
||||||
echo .
|
echo .
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
Loading…
Reference in New Issue
Block a user