[OnePlus 3T Questions & Answers] iamsuperuser:
I'm using Havoc OS v2.9 20190913 build on my OnePlus 3T. I'm not using any custom kernel just the kernel that comes with the Havoc OS v2.9 20190913.

I made an flashable zip to debloat and install my own user & system apps.

The zip is not working because maybe the OS or the kernel reinstalls busybox on every boot into /sbin and while in recovery there is no busybox in /sbin available for the zip to work.

Here is my updater-script

show_progress(1.000000, 0);
ui_print("Mounting filesystems...");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.100000);

ui_print("Deleting Unwanted Apps...");
delete_recursive("/system/app/Calculator");
delete_recursive("/system/app/DeskClock");
delete_recursive("/system/app/LatinIME");
delete_recursive("/system/app/messaging");
delete_recursive("/system/app/Stk");
delete_recursive("/system/app/Terminal");
delete_recursive("/system/app/ThemeAlmostBlack");
delete_recursive("/system/app/ThemeAmaranth");
delete_recursive("/system/app/ThemeAmericanRose");
delete_recursive("/system/app/ThemeAmethyst");
delete_recursive("/system/app/ThemeAquamarine");
delete_recursive("/system/app/ThemeArsenic");
delete_recursive("/system/app/ThemeAzure");
delete_recursive("/system/app/ThemeBistre");
delete_recursive("/system/app/ThemeBlack");
delete_recursive("/system/app/ThemeBlackPearl");
delete_recursive("/system/app/ThemeCerise");
delete_recursive("/system/app/ThemeCobalt");
delete_recursive("/system/app/ThemeDarkAF");
delete_recursive("/system/app/ThemeDarkTurquoise");
delete_recursive("/system/app/ThemeDarkViolet");
delete_recursive("/system/app/ThemeDenim");
delete_recursive("/system/app/ThemeFireBrick");
delete_recursive("/system/app/ThemeFuchsia");
delete_recursive("/system/app/ThemeGrey");
delete_recursive("/system/app/ThemeIndigo");
delete_recursive("/system/app/ThemeMauve");
delete_recursive("/system/app/ThemePersianBlue");
delete_recursive("/system/app/ThemePineGreen");
delete_recursive("/system/app/ThemeRoyalBlue");
delete_recursive("/system/app/ThemeRusset");
delete_recursive("/system/app/ThemeScarlet");
delete_recursive("/system/app/ThemeSelectiveYellow");
delete_recursive("/system/app/ThemeSlateGrey");
delete_recursive("/system/app/ThemeUbuntuOrange");
delete_recursive("/system/app/ThemeUltramarine");
delete_recursive("/system/app/ThemeUNBlue");
delete_recursive("/system/app/ThemeVermilion");
delete_recursive("/system/app/ThemeViolet");
delete_recursive("/system/app/Via");
delete_recursive("/system/priv-app/Contacts");
delete_recursive("/system/priv-app/DocumentsUI");
delete_recursive("/system/priv-app/Lawnchair");
delete_recursive("/system/priv-app/WallpaperPickerGooglePrebuilt");
ui_print("Deleting Unwanted Apps...DONE!");

ui_print("Extracting files...");
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
set_progress(0.300000);

ui_print("Setting permissions...");
set_progress(0.400000);

set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");

set_progress(0.500000);
set_progress(0.700000);

# Unmounting filesystems...
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/system");
set_progress(0.900000);

set_progress(1.000000);

I intalled Magisk Busybox module which is at /system/xbin not /sbin

I also tried changing

run_program("/[B]sbin[/B]/busybox", "mount", "/data");
run_program("/[B]sbin[/B]/busybox", "mount", "/system");

run_program("/[B]sbin[/B]/busybox", "umount", "/data");
run_program("/[B]sbin[/B]/busybox", "umount", "/system");

TO

run_program("/[B]system/xbin[/B]/busybox", "mount", "/data");
run_program("/[B]system/xbin[/B]/busybox", "mount", "/system");

run_program("/[B]system/xbin[/B]/busybox", "umount", "/data");
run_program("/[B]system/xbin[/B]/busybox", "umount", "/system");

But No luck. The zip is not working.

The files are not even getting placed into the /system and /data directories.

So is there any way to overcome this?

Somebody please help me !!

Thanks in Advance.