more stopping services by hand

This commit is contained in:
Tobias Powalowski 2023-06-18 20:28:50 +02:00
parent e82281cec7
commit df1fb21c01
2 changed files with 4 additions and 0 deletions

View file

@ -60,6 +60,9 @@ if [[ "${TTY}" = "tty1" ]]; then
echo -e "\e[1;96mArchboot\e[m \e[1m- Arch Linux Environment finished.\e[m"
echo -e "\e[1mSystemd initrd-switch-root will be launched in a second...\e[m"
read -r -t 3
systemctl stop systemd-user-sessions.service
systemctl stop dbus-org.freedesktop.login1.service
systemctl stop dbus.service
systemctl start initrd-switch-root.target
else
while true; do

View file

@ -388,6 +388,7 @@ _new_environment() {
rm -f /sysroot/{VERSION,config,buildconfig,init} &>/dev/null
# systemd needs this for root_switch
touch /etc/initrd-release
systemctl stop dbus.service
systemctl start initrd-switch-root.target
fi
echo -e "\e[1mStep ${_S_APPEND}7/${_STEPS}:\e[m Creating initramfs ${_RAM}/${_INITRD}..."