From 809210ac95b240ff30acbe2bc3b89a8a486d9d60 Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 08:15:27 +0100 Subject: [PATCH 01/15] Update boot_patch.sh --- scripts/boot_patch.sh | 98 +++++++++++++++++++++++++------------------ 1 file changed, 57 insertions(+), 41 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 64f3d8e07dab0..e4cc674d9a62f 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -113,11 +113,17 @@ ui_print "- Checking ramdisk status" if [ -e ramdisk.cpio ]; then ./magiskboot cpio ramdisk.cpio test STATUS=$? - SKIP_BACKUP="" -else - # Stock A only legacy SAR, or some Android 13 GKIs - STATUS=0 - SKIP_BACKUP="#" + RAMDISK_EXISTS=1 +else + #checking if non compliant implementation + if find . -name "*.cpio" | grep -vF "./ramdisk.cpio" >null; then NONCOMPLIANT=1; fi #searching for any cpio file other than ./ramdisk.cpio + if [ $NONCOMPLIANT -eq 1 ]; then + ui_print "This boot image contains the following non standard cpio:" + find . -name "*.cpio" | grep -vF "./ramdisk.cpio" | xargs ui_print + abort "! The selected boot image does not comply with standard boot images structure. This configuration is not supported" + fi + ui_print "No ramdisk file found in the root directory of the boot image. Skipping ramdisk patching" + RAMDISK_EXISTS=0 fi case $STATUS in 0 ) @@ -158,38 +164,42 @@ fi # Ramdisk Patches ################## -ui_print "- Patching ramdisk" - -$BOOTMODE && [ -z "$PREINITDEVICE" ] && PREINITDEVICE=$(./magisk --preinit-device) - -# Compress to save precious ramdisk space -./magiskboot compress=xz magisk magisk.xz -./magiskboot compress=xz stub.apk stub.xz -./magiskboot compress=xz init-ld init-ld.xz - -echo "KEEPVERITY=$KEEPVERITY" > config -echo "KEEPFORCEENCRYPT=$KEEPFORCEENCRYPT" >> config -echo "RECOVERYMODE=$RECOVERYMODE" >> config -if [ -n "$PREINITDEVICE" ]; then - ui_print "- Pre-init storage partition: $PREINITDEVICE" - echo "PREINITDEVICE=$PREINITDEVICE" >> config +if [ $RAMDISK_EXISTS -eq 1 ]; then + + ui_print "- Patching ramdisk" + + $BOOTMODE && [ -z "$PREINITDEVICE" ] && PREINITDEVICE=$(./magisk --preinit-device) + + # Compress to save precious ramdisk space + ./magiskboot compress=xz magisk magisk.xz + ./magiskboot compress=xz stub.apk stub.xz + ./magiskboot compress=xz init-ld init-ld.xz + + echo "KEEPVERITY=$KEEPVERITY" > config + echo "KEEPFORCEENCRYPT=$KEEPFORCEENCRYPT" >> config + echo "RECOVERYMODE=$RECOVERYMODE" >> config + if [ -n "$PREINITDEVICE" ]; then + ui_print "- Pre-init storage partition: $PREINITDEVICE" + echo "PREINITDEVICE=$PREINITDEVICE" >> config + fi + [ -n "$SHA1" ] && echo "SHA1=$SHA1" >> config + + ./magiskboot cpio ramdisk.cpio \ + "add 0750 init magiskinit" \ + "mkdir 0750 overlay.d" \ + "mkdir 0750 overlay.d/sbin" \ + "add 0644 overlay.d/sbin/magisk.xz magisk.xz" \ + "add 0644 overlay.d/sbin/stub.xz stub.xz" \ + "add 0644 overlay.d/sbin/init-ld.xz init-ld.xz" \ + "patch" \ + "backup ramdisk.cpio.orig" \ + "mkdir 000 .backup" \ + "add 000 .backup/.magisk config" \ + || abort "! Unable to patch ramdisk" + + rm -f ramdisk.cpio.orig config *.xz + fi -[ -n "$SHA1" ] && echo "SHA1=$SHA1" >> config - -./magiskboot cpio ramdisk.cpio \ -"add 0750 init magiskinit" \ -"mkdir 0750 overlay.d" \ -"mkdir 0750 overlay.d/sbin" \ -"add 0644 overlay.d/sbin/magisk.xz magisk.xz" \ -"add 0644 overlay.d/sbin/stub.xz stub.xz" \ -"add 0644 overlay.d/sbin/init-ld.xz init-ld.xz" \ -"patch" \ -"$SKIP_BACKUP backup ramdisk.cpio.orig" \ -"mkdir 000 .backup" \ -"add 000 .backup/.magisk config" \ -|| abort "! Unable to patch ramdisk" - -rm -f ramdisk.cpio.orig config *.xz ################# # Binary Patches @@ -209,6 +219,7 @@ done if [ -f kernel ]; then PATCHEDKERNEL=false + ui_print "Kernel file found - Patching" # Remove Samsung RKP ./magiskboot hexpatch kernel \ 49010054011440B93FA00F71E9000054010840B93FA00F7189000054001840B91FA00F7188010054 \ @@ -237,17 +248,22 @@ if [ -f kernel ]; then # If the kernel doesn't need to be patched at all, # keep raw kernel to avoid bootloops on some weird devices $PATCHEDKERNEL || rm -f kernel + +elif [ $RAMDISK_EXISTS -eq 1 ] then + ui_print "Error - The selected boot image does not contain anything to patch" fi ################# # Repack & Flash ################# -ui_print "- Repacking boot image" -./magiskboot repack "$BOOTIMAGE" || abort "! Unable to repack boot image" - -# Sign chromeos boot -$CHROMEOS && sign_chromeos +if [ $RAMDISK_EXISTS -eq 1 ]; then + ui_print "- Repacking boot image" + ./magiskboot repack "$BOOTIMAGE" || abort "! Unable to repack boot image" + + # Sign chromeos boot + $CHROMEOS && sign_chromeos +fi # Restore the original boot partition path [ -e "$BOOTNAND" ] && BOOTIMAGE="$BOOTNAND" From 8cb949c06ab79450d78c70843cf6c19070fcca68 Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 08:31:46 +0100 Subject: [PATCH 02/15] Update boot_patch.sh --- scripts/boot_patch.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index e4cc674d9a62f..611d7b405a46b 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -118,11 +118,12 @@ else #checking if non compliant implementation if find . -name "*.cpio" | grep -vF "./ramdisk.cpio" >null; then NONCOMPLIANT=1; fi #searching for any cpio file other than ./ramdisk.cpio if [ $NONCOMPLIANT -eq 1 ]; then - ui_print "This boot image contains the following non standard cpio:" + ui_print "- This boot image contains non standard cpio:" find . -name "*.cpio" | grep -vF "./ramdisk.cpio" | xargs ui_print - abort "! The selected boot image does not comply with standard boot images structure. This configuration is not supported" + abort "! This boot image is unsupported" fi - ui_print "No ramdisk file found in the root directory of the boot image. Skipping ramdisk patching" + ui_print "- No ramdisk file in the root directory" + ui_print "- Skipping ramdisk patching" RAMDISK_EXISTS=0 fi case $STATUS in @@ -250,7 +251,8 @@ if [ -f kernel ]; then $PATCHEDKERNEL || rm -f kernel elif [ $RAMDISK_EXISTS -eq 1 ] then - ui_print "Error - The selected boot image does not contain anything to patch" + ui_print "- Warning" + ui_print "- Selected boot image does not contain anything to patch" fi ################# From 74c44c3364aa526fa6c6c312aaef21f035c546d2 Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 08:44:41 +0100 Subject: [PATCH 03/15] Update boot_patch.sh --- scripts/boot_patch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 611d7b405a46b..6853a086ac6ab 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -119,7 +119,11 @@ else if find . -name "*.cpio" | grep -vF "./ramdisk.cpio" >null; then NONCOMPLIANT=1; fi #searching for any cpio file other than ./ramdisk.cpio if [ $NONCOMPLIANT -eq 1 ]; then ui_print "- This boot image contains non standard cpio:" - find . -name "*.cpio" | grep -vF "./ramdisk.cpio" | xargs ui_print + find . -name "*.cpio" | grep -vF "./ramdisk.cpio" > tmp.log + while read p; do + ui_print "- $p" + done Date: Sat, 8 Mar 2025 09:03:48 +0100 Subject: [PATCH 04/15] Update boot_patch.sh --- scripts/boot_patch.sh | 57 ++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 6853a086ac6ab..5bd2d3df8b9f1 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -110,10 +110,34 @@ esac # Test patch status and do restore ui_print "- Checking ramdisk status" + if [ -e ramdisk.cpio ]; then ./magiskboot cpio ramdisk.cpio test STATUS=$? RAMDISK_EXISTS=1 + case $STATUS in + 0 ) + # Stock boot + ui_print "- Stock boot image detected" + SHA1=$(./magiskboot sha1 "$BOOTIMAGE" 2>/dev/null) + cat $BOOTIMAGE > stock_boot.img + cp -af ramdisk.cpio ramdisk.cpio.orig 2>/dev/null + ;; + 1 ) + # Magisk patched + ui_print "- Magisk patched boot image detected" + ./magiskboot cpio ramdisk.cpio \ + "extract .backup/.magisk config.orig" \ + "restore" + cp -af ramdisk.cpio ramdisk.cpio.orig + rm -f stock_boot.img + ;; + 2 ) + # Unsupported + ui_print "! Boot image patched by unsupported programs" + abort "! Please restore back to stock boot image" + ;; + esac else #checking if non compliant implementation if find . -name "*.cpio" | grep -vF "./ramdisk.cpio" >null; then NONCOMPLIANT=1; fi #searching for any cpio file other than ./ramdisk.cpio @@ -125,34 +149,11 @@ else done /dev/null) - cat $BOOTIMAGE > stock_boot.img - cp -af ramdisk.cpio ramdisk.cpio.orig 2>/dev/null - ;; - 1 ) - # Magisk patched - ui_print "- Magisk patched boot image detected" - ./magiskboot cpio ramdisk.cpio \ - "extract .backup/.magisk config.orig" \ - "restore" - cp -af ramdisk.cpio ramdisk.cpio.orig - rm -f stock_boot.img - ;; - 2 ) - # Unsupported - ui_print "! Boot image patched by unsupported programs" - abort "! Please restore back to stock boot image" - ;; -esac if [ -f config.orig ]; then # Read existing configs @@ -255,7 +256,7 @@ if [ -f kernel ]; then $PATCHEDKERNEL || rm -f kernel elif [ $RAMDISK_EXISTS -eq 1 ] then - ui_print "- Warning" + ui_print "- Warning" ui_print "- Selected boot image does not contain anything to patch" fi From 90bc8a47105d96cb43ae1fe2305977e504da1b18 Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 09:07:36 +0100 Subject: [PATCH 05/15] Update boot_patch.sh --- scripts/boot_patch.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 5bd2d3df8b9f1..110fd749f5831 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -155,6 +155,8 @@ else RAMDISK_EXISTS=0 fi +ui_print "- toto 1" + if [ -f config.orig ]; then # Read existing configs chmod 0644 config.orig @@ -166,6 +168,8 @@ if [ -f config.orig ]; then rm config.orig fi +ui_print "- toto 2" + ################## # Ramdisk Patches ################## @@ -207,6 +211,8 @@ if [ $RAMDISK_EXISTS -eq 1 ]; then fi +ui_print "- toto 3" + ################# # Binary Patches ################# @@ -223,6 +229,8 @@ for dt in dtb kernel_dtb extra; do fi done +ui_print "- toto 4" + if [ -f kernel ]; then PATCHEDKERNEL=false ui_print "Kernel file found - Patching" @@ -254,12 +262,16 @@ if [ -f kernel ]; then # If the kernel doesn't need to be patched at all, # keep raw kernel to avoid bootloops on some weird devices $PATCHEDKERNEL || rm -f kernel + + ui_print "- toto 5" elif [ $RAMDISK_EXISTS -eq 1 ] then ui_print "- Warning" ui_print "- Selected boot image does not contain anything to patch" fi +ui_print "- toto 6 +" ################# # Repack & Flash ################# @@ -267,6 +279,8 @@ fi if [ $RAMDISK_EXISTS -eq 1 ]; then ui_print "- Repacking boot image" ./magiskboot repack "$BOOTIMAGE" || abort "! Unable to repack boot image" + + ui_print "- toto 7" # Sign chromeos boot $CHROMEOS && sign_chromeos From 267d45947e503faa948600bf3ea771eee7eab787 Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 09:10:32 +0100 Subject: [PATCH 06/15] Update boot_patch.sh --- scripts/boot_patch.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 110fd749f5831..13fab74a55e2a 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -152,9 +152,11 @@ else fi ui_print "- No ramdisk file in the root directory" ui_print "- Skipping ramdisk patching" + ui_print "- coucou" RAMDISK_EXISTS=0 + ui_print "- dugnou" fi - +ui_print "- monq" ui_print "- toto 1" if [ -f config.orig ]; then From 81236e0c948f5de5f9a798cc71c9498a532151cb Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 09:13:58 +0100 Subject: [PATCH 07/15] Update boot_patch.sh --- scripts/boot_patch.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 13fab74a55e2a..e13a831b2cae5 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -152,12 +152,8 @@ else fi ui_print "- No ramdisk file in the root directory" ui_print "- Skipping ramdisk patching" - ui_print "- coucou" RAMDISK_EXISTS=0 - ui_print "- dugnou" fi -ui_print "- monq" -ui_print "- toto 1" if [ -f config.orig ]; then # Read existing configs @@ -170,8 +166,6 @@ if [ -f config.orig ]; then rm config.orig fi -ui_print "- toto 2" - ################## # Ramdisk Patches ################## @@ -213,8 +207,6 @@ if [ $RAMDISK_EXISTS -eq 1 ]; then fi -ui_print "- toto 3" - ################# # Binary Patches ################# @@ -231,8 +223,6 @@ for dt in dtb kernel_dtb extra; do fi done -ui_print "- toto 4" - if [ -f kernel ]; then PATCHEDKERNEL=false ui_print "Kernel file found - Patching" @@ -267,7 +257,7 @@ if [ -f kernel ]; then ui_print "- toto 5" -elif [ $RAMDISK_EXISTS -eq 1 ] then +elif [ $RAMDISK_EXISTS -eq 1 ]; then ui_print "- Warning" ui_print "- Selected boot image does not contain anything to patch" fi From 17fba790b480d3ce3c08667636ab66e82ee2c253 Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 09:20:25 +0100 Subject: [PATCH 08/15] Update boot_patch.sh --- scripts/boot_patch.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index e13a831b2cae5..1a2aeb5d00506 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -225,7 +225,7 @@ done if [ -f kernel ]; then PATCHEDKERNEL=false - ui_print "Kernel file found - Patching" + ui_print "! Patching kernel" # Remove Samsung RKP ./magiskboot hexpatch kernel \ 49010054011440B93FA00F71E9000054010840B93FA00F7189000054001840B91FA00F7188010054 \ @@ -254,16 +254,12 @@ if [ -f kernel ]; then # If the kernel doesn't need to be patched at all, # keep raw kernel to avoid bootloops on some weird devices $PATCHEDKERNEL || rm -f kernel - - ui_print "- toto 5" elif [ $RAMDISK_EXISTS -eq 1 ]; then ui_print "- Warning" ui_print "- Selected boot image does not contain anything to patch" fi -ui_print "- toto 6 -" ################# # Repack & Flash ################# @@ -271,8 +267,6 @@ ui_print "- toto 6 if [ $RAMDISK_EXISTS -eq 1 ]; then ui_print "- Repacking boot image" ./magiskboot repack "$BOOTIMAGE" || abort "! Unable to repack boot image" - - ui_print "- toto 7" # Sign chromeos boot $CHROMEOS && sign_chromeos From 3a29a89aa76455e5cb786576d07b9e08e77e0864 Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 09:26:37 +0100 Subject: [PATCH 09/15] Update boot_patch.sh --- scripts/boot_patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 1a2aeb5d00506..c7242b504631e 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -225,7 +225,7 @@ done if [ -f kernel ]; then PATCHEDKERNEL=false - ui_print "! Patching kernel" + ui_print "- Patching kernel" # Remove Samsung RKP ./magiskboot hexpatch kernel \ 49010054011440B93FA00F71E9000054010840B93FA00F7189000054001840B91FA00F7188010054 \ From 1d59f5f807089ab810d85b8c8e80100cf34ff943 Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 10:40:01 +0100 Subject: [PATCH 10/15] Update boot_patch.sh --- scripts/boot_patch.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index c7242b504631e..3ef14e428393b 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -256,21 +256,18 @@ if [ -f kernel ]; then $PATCHEDKERNEL || rm -f kernel elif [ $RAMDISK_EXISTS -eq 1 ]; then - ui_print "- Warning" - ui_print "- Selected boot image does not contain anything to patch" + abort "! Selected boot image does not contain anything to patch" fi ################# # Repack & Flash ################# -if [ $RAMDISK_EXISTS -eq 1 ]; then - ui_print "- Repacking boot image" - ./magiskboot repack "$BOOTIMAGE" || abort "! Unable to repack boot image" +ui_print "- Repacking boot image" +./magiskboot repack "$BOOTIMAGE" || abort "! Unable to repack boot image" - # Sign chromeos boot - $CHROMEOS && sign_chromeos -fi +# Sign chromeos boot +$CHROMEOS && sign_chromeos # Restore the original boot partition path [ -e "$BOOTNAND" ] && BOOTIMAGE="$BOOTNAND" From ccf4b427bdfdc8955bcf3f01a118a4500211c6ff Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sat, 8 Mar 2025 11:51:50 +0100 Subject: [PATCH 11/15] Update boot_patch.sh --- scripts/boot_patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 3ef14e428393b..45d3f8bdc471c 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -255,7 +255,7 @@ if [ -f kernel ]; then # keep raw kernel to avoid bootloops on some weird devices $PATCHEDKERNEL || rm -f kernel -elif [ $RAMDISK_EXISTS -eq 1 ]; then +elif [ $RAMDISK_EXISTS -eq 0 ]; then abort "! Selected boot image does not contain anything to patch" fi From 28c5e048a0b63e36b2a6922b393eea020925352d Mon Sep 17 00:00:00 2001 From: NeutroGe <60129797+NeutroGe@users.noreply.github.com> Date: Sun, 9 Mar 2025 13:01:09 +0100 Subject: [PATCH 12/15] Update boot_patch.sh --- scripts/boot_patch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 45d3f8bdc471c..c01acbfb986ad 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -142,13 +142,14 @@ else #checking if non compliant implementation if find . -name "*.cpio" | grep -vF "./ramdisk.cpio" >null; then NONCOMPLIANT=1; fi #searching for any cpio file other than ./ramdisk.cpio if [ $NONCOMPLIANT -eq 1 ]; then + ui_print "- Information" ui_print "- This boot image contains non standard cpio:" find . -name "*.cpio" | grep -vF "./ramdisk.cpio" > tmp.log while read p; do ui_print "- $p" done Date: Sun, 9 Mar 2025 13:06:42 +0100 Subject: [PATCH 13/15] Update boot_patch.sh changing phrasing --- scripts/boot_patch.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index c01acbfb986ad..63a6a7e1ac13b 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -139,17 +139,16 @@ if [ -e ramdisk.cpio ]; then ;; esac else - #checking if non compliant implementation + #checking if other cpio exist in the boot image if find . -name "*.cpio" | grep -vF "./ramdisk.cpio" >null; then NONCOMPLIANT=1; fi #searching for any cpio file other than ./ramdisk.cpio if [ $NONCOMPLIANT -eq 1 ]; then ui_print "- Information" - ui_print "- This boot image contains non standard cpio:" + ui_print "- This boot image contains the following unsupported cpio:" find . -name "*.cpio" | grep -vF "./ramdisk.cpio" > tmp.log while read p; do ui_print "- $p" done Date: Sun, 9 Mar 2025 13:07:45 +0100 Subject: [PATCH 14/15] Update boot_patch.sh Better phrasing --- scripts/boot_patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 63a6a7e1ac13b..c543460b50165 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -150,7 +150,7 @@ else done Date: Sun, 9 Mar 2025 19:40:16 +0100 Subject: [PATCH 15/15] Update boot_patch.sh Phrasing --- scripts/boot_patch.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index c543460b50165..8269dfc9143db 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -140,10 +140,10 @@ if [ -e ramdisk.cpio ]; then esac else #checking if other cpio exist in the boot image - if find . -name "*.cpio" | grep -vF "./ramdisk.cpio" >null; then NONCOMPLIANT=1; fi #searching for any cpio file other than ./ramdisk.cpio - if [ $NONCOMPLIANT -eq 1 ]; then + if find . -name "*.cpio" | grep -vF "./ramdisk.cpio" >null; then NOTSUPPORTED=1; fi #searching for any cpio file other than ./ramdisk.cpio + if [ $NOTSUPPORTED -eq 1 ]; then ui_print "- Information" - ui_print "- This boot image contains the following unsupported cpio:" + ui_print "- This boot image contains the following not supported cpio:" find . -name "*.cpio" | grep -vF "./ramdisk.cpio" > tmp.log while read p; do ui_print "- $p"