storage: raises "ValueError: No such mount point" on Debian Live system
I used live-build to build a stable Debian live image with the packages live-task-base fbx-all (and no installer). I'm running the image with VirtualBox.
FreedomBox is stuck in setup loop due to missing mount point. This is freedombox 21.4.4, but it looks like we have the same code in current version.
Jul 30 14:42:36 debian /usr/bin/plinth[993]: Running first setup.
Jul 30 14:42:36 debian /usr/bin/plinth[993]: Running setup for modules, essential - True, selected modules - None
Jul 30 14:42:36 debian /usr/bin/plinth[993]: Running module setup - snapshot
Jul 30 14:42:37 debian /usr/bin/plinth[993]: Error running setup - No such mount point
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/plinth/setup.py", line 78, in run
self.module.setup(self, old_version=current_version)
File "/usr/lib/python3/dist-packages/plinth/modules/snapshot/__init__.py", line 91, in setup
if is_supported():
File "/usr/lib/python3/dist-packages/plinth/modules/snapshot/__init__.py", line 80, in is_supported
fs_type = storage.get_filesystem_type()
File "/usr/lib/python3/dist-packages/plinth/modules/storage/__init__.py", line 153, in get_filesystem_type
raise ValueError('No such mount point')
ValueError: No such mount point
Jul 30 14:42:37 debian /usr/bin/plinth[993]: Error running setup - No such mount point
Jul 30 14:42:37 debian /usr/bin/plinth[993]: Unable to complete setup: No such mount point
Jul 30 14:42:37 debian /usr/bin/plinth[993]: Will try again in 10 seconds
# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=479080k,nr_inodes=119770,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=99992k,mode=755)
/dev/sr0 on /run/live/medium type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)
/dev/loop0 on /run/live/rootfs/filesystem.squashfs type squashfs (ro,noatime)
tmpfs on /run/live/overlay type tmpfs (rw,noatime,size=499952k,mode=755)
overlay on / type overlay (rw,noatime,lowerdir=/run/live/rootfs/filesystem.squashfs/,upperdir=/run/live/overlay/rw,workdir=/run/live/overlay/work)
tmpfs on /usr/lib/live/mount type tmpfs (rw,nosuid,nodev,noexec,relatime,size=99992k,mode=755)
/dev/loop0 on /usr/lib/live/mount/rootfs/filesystem.squashfs type squashfs (ro,noatime)
tmpfs on /usr/lib/live/mount/overlay type tmpfs (rw,noatime,size=499952k,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=9146)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=99988k,nr_inodes=24997,mode=700,uid=1000,gid=1000)
# python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.disk_partitions()
[sdiskpart(device='/dev/sr0', mountpoint='/run/live/medium', fstype='iso9660', opts='ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8', maxfile=255, maxpath=4096), sdiskpart(device='/dev/loop0', mountpoint='/run/live/rootfs/filesystem.squashfs', fstype='squashfs', opts='ro,noatime', maxfile=256, maxpath=4096), sdiskpart(device='/dev/loop0', mountpoint='/usr/lib/live/mount/rootfs/filesystem.squashfs', fstype='squashfs', opts='ro,noatime', maxfile=256, maxpath=4096)]