AK3: ensure no template files from beginner devs get to the ramdisk

This commit is contained in:
osm0sis committed 2022-04-23 18:47:35 -03:00
1 parent 97d2d7ffd5
commit adb09dcc81
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -3,4 +3,4 @@
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
#
#
# AK_BASE_VERSION=20220410
# AK_BASE_VERSION=20220423
+5 -1
View File
@@ -740,8 +740,12 @@ setup_ak() {
;;
esac;
# automate simple multi-partition setup for boot_img_hdr_v3 + vendor_boot
# clean up any template placeholder files
cd $home;
rm -f modules/system/lib/modules/placeholder patch/placeholder ramdisk/placeholder;
rmdir -p modules patch ramdisk;
# automate simple multi-partition setup for boot_img_hdr_v3 + vendor_boot
if [ -e "/dev/block/bootdevice/by-name/vendor_boot$slot" -a ! -f vendor_setup ] && [ -f dtb -o -d vendor_ramdisk -o -d vendor_patch ]; then
echo "Setting up for simple automatic vendor_boot flashing..." >&2;
(mkdir boot-files;