From 71f9249c9e08e9abbd08f6ce95d2906c23cfe433 Mon Sep 17 00:00:00 2001 From: Erfan Abdi Date: Mon, 25 Oct 2021 12:18:02 +0330 Subject: [PATCH] lxc: Fix bad eol of proc dt values --- tools/helpers/lxc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/helpers/lxc.py b/tools/helpers/lxc.py index 1319442..d57e63c 100644 --- a/tools/helpers/lxc.py +++ b/tools/helpers/lxc.py @@ -231,7 +231,7 @@ def find_hal(hardware): else: if os.path.isfile("/proc/device-tree/" + product): with open("/proc/device-tree/" + product) as f: - f_value = f.read().strip() + f_value = f.read().strip().rstrip('\x00') if f_value != "": props.append("ro.product.waydroid." + product + "=" + f_value)