]> glassweightruler.freedombox.rocks Git - waydroid.git/commit
lxc: Only add /dev/ashmem to config_nodes when it exists
authorJami Kettunen <jami.kettunen@protonmail.com>
Tue, 3 Jan 2023 23:54:29 +0000 (01:54 +0200)
committerAlessandro Astone <ales.astone@gmail.com>
Sun, 15 Jan 2023 17:05:05 +0000 (18:05 +0100)
commit8f6570b82007b1ca79af4db19412eb258e7b3a2f
tree6e8e48a208080985b9e176734bb82ceb3963a436
parent9aae6c4ab39d12056a8df086f1277d43ab27f14e
lxc: Only add /dev/ashmem to config_nodes when it exists

This hasn't existed in mainline Linux kernels since v5.18 and trying to
always mount it regardless just adds to the noise in "waydroid log" in
most cases, so simply don't add it to config_nodes unless it actually
exists.

Silences the following:

  lxc-start: waydroid: ../src/lxc/utils.c: safe_mount: 1221 No such file or directory - Failed to mount "/dev/ashmem" onto "/usr/lib/lxc/rootfs/dev/ashmem"
tools/actions/initializer.py
tools/actions/upgrader.py
tools/helpers/lxc.py