mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-21 09:38:30 +00:00
Update vars for 2SI
This commit is contained in:
parent
cf2d02c0dd
commit
16b400964b
@ -125,7 +125,7 @@ static void dtb_print(const char *file, bool fstab) {
|
|||||||
|
|
||||||
static void dtb_patch(const char *in, const char *out) {
|
static void dtb_patch(const char *in, const char *out) {
|
||||||
bool keepverity = check_env("KEEPVERITY");
|
bool keepverity = check_env("KEEPVERITY");
|
||||||
bool redirect = check_env("REDIRSYSMNT");
|
bool redirect = check_env("TWOSTAGEINIT");
|
||||||
|
|
||||||
vector<uint8_t *> fdt_list;
|
vector<uint8_t *> fdt_list;
|
||||||
size_t dtb_sz ;
|
size_t dtb_sz ;
|
||||||
|
@ -80,6 +80,7 @@ Supported actions:
|
|||||||
patch [OUT]
|
patch [OUT]
|
||||||
Search for fstab and remove verity/avb
|
Search for fstab and remove verity/avb
|
||||||
If [OUT] is not specified, it will directly output to <input>
|
If [OUT] is not specified, it will directly output to <input>
|
||||||
|
Configure with env variables: KEEPVERITY TWOSTAGEINIT
|
||||||
|
|
||||||
compress[=method] <infile> [outfile]
|
compress[=method] <infile> [outfile]
|
||||||
Compress <infile> with [method] (default: gzip), optionally to [outfile]
|
Compress <infile> with [method] (default: gzip), optionally to [outfile]
|
||||||
|
@ -124,8 +124,8 @@ case $((STATUS & 3)) in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [ $((STATUS & 8)) -ne 0 ]; then
|
if [ $((STATUS & 8)) -ne 0 ]; then
|
||||||
ui_print "- 2 Stage Init ramdisk detected"
|
# Possibly using 2SI, export env var
|
||||||
export REDIRSYSMNT=true
|
export TWOSTAGEINIT=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user