Bug#528480: live-installer does not let d-i to eject cdrom
Package: live-installer
at the end of a successful installation finish-install is not able to umount and eject cdrom.
Lates messages are (e.g.):
---- * -----
May 13 07:13:12 finish-install: info: Running /usr/lib/finish-install.d/15cdrom-detect
May 13 07:13:12 cdrom-detect: Unmounting and ejecting '/dev/hdc'
May 13 07:13:12 finish-install: umount: cannot umount /cdrom: Device or resource busy
May 13 07:13:12 finish-install: umount: cannot umount /cdrom: Device or resource busy
May 13 07:13:12 finish-install: eject: unmount of '/cdrom' failed
May 13 07:13:12 finish-install: info: Running /usr/lib/finish-install.d/20final-message
---- * -----
fuser and lsof showed me nothing, so I tried losetup -a and I saw that live-installer forgot to unset the loop device used for the .squashfs:
# /target/sbin/losetup -a
/dev/loop0: [1600]:2822 (/cdrom/live/filesystem.squashfs)
# /target/usr/bin/lsof 2>/dev/null | grep loop
loop0 13671 0 cwd DIR 0,1 0 1 /
loop0 13671 0 rtd DIR 0,1 0 1 /
loop0 13671 0 txt unknown /proc/13671/exe
# ps axw | grep 13671
13671 root 0 SW< [loop0]
# /target/sbin/losetup -d /dev/loop0
ioctl: LOOP_CLR_FD: Device or resource busy
# /target/bin/fuser /dev/loop0
# /target/bin/fuser -c /dev/loop0
nothing...
I'm stuck there.
Reproducible with qemu.
--
ESC:wq
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Reply to: