Phone boots now with that zip, but zram0 block device still exists. I can try anything, just let me know what to do.
Ok - Magisk is a systemless mod, it doesn't affect the actual system.
This mod DOES affect the system.
Make a nandroid backup in TWRP first.
Find where your dot-rc init scripts are - mine are in /system/etc/init as shown below -
Unzip the following file, you will get a text file named noswap.sh and that's it.
View attachment noswap.zip *** NOT A MAGISK ZIP FILE
Use a file manager and copy noswap.sh to the dot-rc init files location.
Note the location of the dot-rc init files and substitute it below, in a terminal as root -
Code:
cd dot-rc-init-files-location
chown root:root noswap.sh
chmod 755 noswap.sh
You're going to lose Google Pay and anything else that insists on a clean system image.
War could break out on Mars and you may need to restore your nandroid backup. I'm not responsible for any of that or anything else that goes wrong.
If that doesn't work then the only option will be to prevent swap from ever getting turned on in the first place. In that case, send me a private message if you seriously want to proceed with that.
PS - Pixels have the whole A/B partition mirror going on - I just remembered that. You may have to repeat this for each partition. I can't help with that.
Do verify that you booted the modified /system by looking for the noswap.sh file.