how to stop a system update upon restart
You need to open your device developer option. In case it is not there then click your device build number 7 times. Then in developer option disable auto system update on restart.Link for the image