Installation method - Gitpure/MagiskOnEmu- GitHub Wiki

Install Magisk into system partition: Magisk will be installed into /system/etc/init/magisk, system must be writeable.

Install Magisk into ramdisk (systemless): Magisk will ne installed into ramdisk.img or initrd.img. Recommended for Android-x86 and Bluestacks Pie. Install magisk into ramdisk is still impossible on almost emulator because the partition that store ramdisk image has very small size!

Install Magisk by using GearLock extension (Android-x86 only): Make a GearLock extension to install Magisk so you need to have GearLock installed (This method is deprecated, please use ramdisk/initrd or system method instead!)