Skip to content

Commit 4ce268d

Browse files
authored
improve kernel check
1 parent 391a45a commit 4ce268d

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

AppDir/bin/start-waydroid.src.hook

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,22 @@ _is_cmd() {
88
}
99

1010
_check_kernel() (
11-
f=/proc/config.gz
12-
[ -r "$f" ] || return 0
13-
if ! zcat "$f" | grep -q -m -1 'CONFIG_ANDROID_BINDER_IPC_RUST'; then
14-
zenity --width=555 --warning --text "$(cat <<-EOF
15-
Your kernel is missing the rust_binder module, which is needed by waydroid
11+
a=CONFIG_ANDROID_BINDER_IPC_RUST
12+
if zcat /proc/config.gz | grep -q -m -1 "$a" ; then
13+
return 0
14+
elif grep -q -m 1 "$a" /usr/lib*/modules/*/build/.config; then
15+
return 0
16+
elif grep -q -m 1 "$a" /lib*/modules/*/build/.config; then
17+
return 0
18+
fi
19+
zenity --width=555 --warning --text "$(cat <<-EOF
20+
Your kernel is missing the rust_binder module, which is needed by waydroid
1621

17-
You will need to either update your kernel or add it with DKMS
22+
You will need to either update your kernel or add it with DKMS
1823

19-
NOTE: If this is a false positive open an issue at the AppImage repository!
20-
EOF
21-
)"
22-
fi
24+
NOTE: If this is a false positive open an issue at the AppImage repository!
25+
EOF
26+
)"
2327
)
2428

2529
_get_sudo() {

0 commit comments

Comments
 (0)