rainestorme / murkmod

A continuation of fakemurk and mush that includes a plugin manager and additional useful utilities.
MIT License
7 stars 7 forks source link

image_patcher.sh: Relies on crossystem being present on the system, will not work as bootstrap from a non-ChromeOS system #31

Closed rainestorme closed 7 months ago

rainestorme commented 7 months ago

image_patcher.sh, line 399: readarray -t csys_lines <<<"$(csys)" csys is defined earlier (line 73):

csys() {
    if [ "$COMPAT" == "1" ]; then
        crossystem "$@"
    elif test -f "$ROOT/usr/bin/crossystem.old"; then
        "$ROOT/usr/bin/crossystem.old" "$@"
    else
        "$ROOT/usr/bin/crossystem" "$@"
    fi
}

Perhaps a default output to use would be the best route to go? crossystem contains some device-specific outputs, so we'll have to see.

rainestorme commented 7 months ago

Turns out I was an idiot, this is only referenced in crossystem_boot_patcher.sh and is just part of the common headers. FML