[Google Pixel 2 XL Guides, News, & Discussion] eulogy1337:
Can't get my pixel 2xl to install Magisk. The bootloader is already unlocked.

If I open Magisk, it says ramdisk yes. I click install, patch the boot.img from image-taimen-rp1a.201005.004.a1.zip, and then run "fastboot flash boot magisk_patched.img".

It looks like it flashes. I get Sending 'boot_b' and writing 'boot_b' and it succeeds. I even tried flashing boot_a and boot_b with the same image, but after I reboot Magisk Manager just says that Magisk isn't installed.

Here's the patching log if anyone can help...

- Device platform: arm64-v8a
- Installing: 22.1 (22100)
- Copying image to cache
- Unpacking boot image
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
HEADER_VER [0]
KERNEL_SZ [14986756]
RAMDISK_SZ [11637051]
SECOND_SZ [0]
EXTRA_SZ [0]
OS_VERSION [11.0.0]
OS_PATCH_LEVEL [2020-10]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200,n8 earlycon=msm_serial_dm,0xc1b0000 androidboot.hardware=taimen androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1 user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware loop.max_part=7 raid=noautodetect usbcore.autosuspend=7 androidboot.dtbo_idx=12 buildvariant=user]
CHECKSUM [407373ab36c5ba012b107ac3d68cb8d6dc9830f6000000000000000000000000]
KERNEL_DTB_SZ [392041]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
- Checking ramdisk status
Loading cpio: [ramdisk.cpio]
- Stock boot image detected
- Patching ramdisk
Loading cpio: [ramdisk.cpio]
Add entry [init] (0750)
Create directory [overlay.d] (0750)
Create directory [overlay.d/sbin] (0750)
Add entry [overlay.d/sbin/magisk32.xz] (0644)
Add entry [overlay.d/sbin/magisk64.xz] (0644)
Patch with flag KEEPVERITY=[true] KEEPFORCEENCRYPT=[true]
Loading cpio: [ramdisk.cpio.orig]
Backup mismatch entry: [init] -> [.backup/init]
Record new entry: [overlay.d] -> [.backup/.rmlist]
Record new entry: [overlay.d/sbin] -> [.backup/.rmlist]
Record new entry: [overlay.d/sbin/magisk32.xz] -> [.backup/.rmlist]
Record new entry: [overlay.d/sbin/magisk64.xz] -> [.backup/.rmlist]
Create directory [.backup] (0000)
Add entry [.backup/.magisk] (0000)
Dump cpio: [ramdisk.cpio]
Loading dtbs from [kernel_dtb]
Patch @ 01809D6E [736B69705F696E697472616D667300] -> [77616E745F696E697472616D667300]
- Repacking boot image
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
HEADER_VER [0]
KERNEL_SZ [14986756]
RAMDISK_SZ [11637051]
SECOND_SZ [0]
EXTRA_SZ [0]
OS_VERSION [11.0.0]
OS_PATCH_LEVEL [2020-10]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200,n8 earlycon=msm_serial_dm,0xc1b0000 androidboot.hardware=taimen androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1 user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware loop.max_part=7 raid=noautodetect usbcore.autosuspend=7 androidboot.dtbo_idx=12 buildvariant=user]
CHECKSUM [407373ab36c5ba012b107ac3d68cb8d6dc9830f6000000000000000000000000]
KERNEL_DTB_SZ [392041]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [new-boot.img]
HEADER_VER [0]
KERNEL_SZ [14985294]
RAMDISK_SZ [11925048]
SECOND_SZ [0]
EXTRA_SZ [0]
OS_VERSION [11.0.0]
OS_PATCH_LEVEL [2020-10]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200,n8 earlycon=msm_serial_dm,0xc1b0000 androidboot.hardware=taimen androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1 user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware loop.max_part=7 raid=noautodetect usbcore.autosuspend=7 androidboot.dtbo_idx=12 buildvariant=user]
CHECKSUM [4b2038004820667351b53f8fdf1067a9805a7c1e000000000000000000000000]

****************************
Output file is written to
/storage/emulated/0/Download/magisk_patched-22100_rKXDi.img
****************************
cp: can't preserve ownership of 'busybox': Operation not permitted
cp: can't preserve ownership of 'magisk32': Operation not permitted
cp: can't preserve ownership of 'magisk64': Operation not permitted
cp: can't preserve ownership of 'magiskboot': Operation not permitted
cp: can't preserve ownership of 'magiskinit': Operation not permitted
- All done!

EDIT: I tried the Canary version of Magisk like [-]awkeye and have the same result as above.

-----------------