X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/b1825bf76ade95d47bcffadb3158bc911e423670..71f9249c9e08e9abbd08f6ce95d2906c23cfe433:/tools/helpers/lxc.py?ds=sidebyside 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)