#832728 wrong mountpoint for medium after boot with persistence

#832728#5
Date:
2015-05-12 13:18:52 UTC
From:
To:
When booting with persistence the live medium ends up being mounted on
/lib/live/mount/persistence/*devname* after boot. It should instead be
mounted on /lib/live/medium. This happens because while probing for
persistence already mounted devices are moved to
/lib/live/mount/persistence and this is not rolled back if no
persistence is found on the device.

This bug was always present, but only uncovered by commit
e5904f5079fd4362c4dd63027075fce4b47c51c5. Which tried to not blacklist
the live medium device when searching for persistence. It tried to
instead blacklist the devices containing the underlay filesystems (eg.
loop device for a squashfs image). While this is the right thing to do
in theory, the commit has two major problems:

1. "$(what_is_mounted_on d)" should be "$(what_is_mounted_on ${d})"
2. At that point during the boot, the underlay filesystems are not yet
   mounted below /live/rootfs, so /live/rootfs/* does not actually find
   them. They are instead mounted directly below / which makes it very
   hard to find them. They are only later during the boot moved to
   /live/rootfs. There is an old comment in the code that not mounting
   them directly below / breaks some things. I'm not sure if this is
   still relevant. If not the easiest fix is probably to mount the
   devices at the right place from the start and not move them around
   afterwards.

I see several possible solutions. These are non exclusive. A full fix
needs a combination of all of this:
- Revert e5904f5079fd4362c4dd63027075fce4b47c51c5 until a better
  solution is implemented.
- Instead of moving the mount point of already mounted devices, just
  bind mount them when looking for persistence. This would also make it
  easy to rollback if no persistence is found.
- Implement a proper solution for the blacklisting of underlay
  filesystems.

Gaudenz

#832728#18
Date:
2026-09-18 11:46:11 UTC
From:
To:
Dear submitter,

as the package open-infrastructure-system-tools has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1137258

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)