I am now running Storage.sh inside a Ubuntu Docker container on Home Assistant Operating System. It seems that Docker is introducing some extra output in the findmnt command used to detect the device:
This patch might be required also for other instances of that sed call.
For reference, this is how I start the container:
docker run --privileged -ti -v /mnt/data/benchmark/:/mnt/ -v /dev/:/dev/ ubuntu:jammy
And this is how mount looks like inside the container:
/dev/sda8 on /etc/resolv.conf type ext4 (rw,relatime)
/dev/sda8 on /etc/hostname type ext4 (rw,relatime)
/dev/sda8 on /etc/hosts type ext4 (rw,relatime)
root@a1910f57cf49:/# findmnt --version
findmnt from util-linux 2.37.2
root@a1910f57cf49:/# uname -a
Linux a1910f57cf49 5.15.32-v8 #1 SMP PREEMPT Sat Jul 23 18:06:19 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
Hi,
I am now running
Storage.sh
inside a Ubuntu Docker container on Home Assistant Operating System. It seems that Docker is introducing some extra output in thefindmnt
command used to detect the device:The following patch makes this work for me:
This patch might be required also for other instances of that sed call.
For reference, this is how I start the container:
And this is how
mount
looks like inside the container: