Bug#986721: live-boot: Failed to unmount /run/live/medium: Device or resource busy - which might corrupt live USB sticks
Package: live-boot
Version: 1:20210208
Severity: important
Dear Maintainer,
* What led up to the situation?
When rebooting or halting the Debian live system, it gives these
error messages:
Failed to unmount /run/live/medium: Device or resource busy
systemd-shutdown[1]: Could not detach loopback /dev/loop0: Device
or resource busy
systemd-shutdown[1]: Failed to finalize file systems, loop devices,
ignoring.
This error might corrupt the file system on the live USB flash drive.
It been reported on different forums:
https://github.com/systemd/systemd/issues/17988
https://github.com/grml/grml/issues/109
https://github.com/grml/grml/issues/150
https://github.com/systemd/systemd/issues/2814
System developers mentioned: "isn't the simpler and better fix to
change debian to not set things up that way? Specifically, why expose
the "components" of the overlayfs at all? why not just leave them
outside the tree when pivotting into the overlayfs?"
This issue is not solved yet in live-boot 1:20210208. Is any
workaround we can try to avoid this?
Thank you very much.
-- Package-specific info:
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-5-amd64 (SMP w/6 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages live-boot depends on:
ii live-boot-initramfs-tools [live-boot-backend] 1:20210208.drbl2
Versions of packages live-boot recommends:
ii live-boot-doc 1:20210208
ii live-tools 1:20190831
ii rsync 3.2.3-4
ii uuid-runtime 2.36.1-7
Versions of packages live-boot suggests:
pn cryptsetup <none>
pn curlftpfs <none>
pn httpfs2 <none>
ii wget 1.21-1+b1
-- no debconf information
--
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5 356C 8E94 C9CD 163E 3FB0
Reply to: