From: Erfan Abdi Date: Mon, 25 Oct 2021 08:48:02 +0000 (+0330) Subject: lxc: Fix bad eol of proc dt values X-Git-Tag: 1.2.1~12 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/71f9249c9e08e9abbd08f6ce95d2906c23cfe433?ds=sidebyside lxc: Fix bad eol of proc dt values --- 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 make_base_props(args): 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)