Commit 01f54b63 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play waydroid: migrate to epm update-kernel functions

parent 70c82245
...@@ -53,6 +53,7 @@ case "${3}" in ...@@ -53,6 +53,7 @@ case "${3}" in
waydroid_install ;; waydroid_install ;;
'--integrate') '--integrate')
assure_root
waydroid_integrate ;; waydroid_integrate ;;
'--software-render') '--software-render')
...@@ -65,19 +66,12 @@ esac ...@@ -65,19 +66,12 @@ esac
waydroid_install () { waydroid_install () {
if ! grep "psi=1" /etc/sysconfig/grub2 &>/dev/null ; then epm update-kernel --add-kernel-options psi1
cp /etc/sysconfig/grub2 /etc/sysconfig/grub2.epmbak
sed -i "s|^\(GRUB_CMDLINE_LINUX_DEFAULT='.*\)'\$|\1 psi=1'|" /etc/sysconfig/grub2
fi
epm update || fatal epm update || fatal
epm update-kernel || fatal epm update-kernel || fatal
if check_run_kernel ; then if ! epm update-kernel --check-run-kernel ; then
echo "The most newer installed ${USED_KFLAVOUR} kernel is running."
else
echo "The system has a newer ${USED_KFLAVOUR} kernel."
echo "Reboot with a fresh ${USED_KFLAVOUR} kernel and restart: epm play waydroid"
fatal fatal
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment