solve reboot

This commit is contained in:
Tobias Powalowski 2022-06-02 14:52:41 +02:00
parent 87ebca4f02
commit 56e24c07dd
2 changed files with 4 additions and 2 deletions

View file

@ -9,6 +9,7 @@
. /usr/lib/archboot/gnome-wayland.sh
. /usr/lib/archboot/kde.sh
. /usr/lib/archboot/kde-wayland.sh
_W_DIR="/archboot"
[[ -z "${1}" ]] && usage
_RUN_OPTION="$1"
@ -51,7 +52,7 @@ if [[ "${_L_COMPLETE}" == "1" || "${_L_INSTALL_COMPLETE}" == "1" ]]; then
echo "update-installer.sh ${_RUN_OPTION}" > ${_W_DIR}/etc/profile.d/zz-00-archboot.sh
systemctl stop dbus
echo -e "\033[1mStep 3/3:\033[0m Switching to new root ${_W_DIR} ..."
mount -o bind ${_W_DIR} ${_W_DIR}
#mount -o bind ${_W_DIR} ${_W_DIR}
systemctl switch-root ${_W_DIR}
fi
[[ ${_RUNNING_ARCH} == "x86_64" ]] && _kver_x86

View file

@ -137,7 +137,8 @@ _zram_initialize() {
cat << EOF > /etc/profile.d/zz-01-archboot.sh
[[ -z \$TTY ]] && TTY=\$(tty)
TTY=\${TTY#/dev/}
if [[ "\${TTY}" == "tty1" ]]; then
if [[ "\${TTY}" == "$(tty)" ]]; then
clear
update-installer.sh ${_RUN_OPTION}
rm /etc/profile.d/zz-01-archboot.sh
fi