[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#724931: Problem with apt-setup



Hi,

The size difference in the ISO was due to an additional vmlinuz (2.5 MB) in /install.amd/gtk. If have created a shell script to patch an existing ISO and attached it to this mail.
This script has to be executed with root privileges!
It expects to find a debian-testing-amd64-netinst.iso mounted to /mnt and the patch file debian-iso-loopmount.diff in the directory where it is executed. It will create a patched ISO named debian-testing-amd64-netinst-loopmount.iso in the directory where it is executed. The size of this patched ISO is 229,8 MB, i.e. less than the original size, which is probably due to better compression.

On 30.09.2013 23:16, wrote ian_bruce@fastmail.net:
I certainly have no objection to that, although I think it would be a
good thing if the install ISOs and the live ISOs both used the same
loopmount mechanism.

This is why I suggested the renaming of 'loopmount=' into 'findiso=', but I agree, that this is bad, because of possible different behaviour. I think the live ISO should switch to 'loopmount=', because it is a very small patch, except, of course, if there are any features 'findiso=' has that are not provided by 'loopmount='.

While testing the patched ISO, I noticed a problem very similar to bug #724933: apt-setup is not working correctly. The error message was:

main-menu[524]: INFO: Menu item 'apt-setup-udeb' selected
apt-setup: umount: can't umount /target/media/cdrom0: Invalid argument
apt-setup: Using CD-ROM mount point: /media/cdrom/
apt-setup: Identifying..
apt-setup: [ae8b99d023e59c58db825bbd443912e2-2]
apt-setup: Scanning disc for index files..
apt-setup: Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
apt-setup: W: Failed to mount '/dev/sr0' to '/media/cdrom'
apt-setup: E: Unable to locate any package files, perhaps this is not a Debian Disc or the wrong architecture?
kernel: [1392,717219] ISO 9660 Extensions: Microsoft Joliet Level 3
kernel: [1392,717334] ISO 9660 Extensions: RRIP_1991A

After continuing in the menu, the following line is added:
apt-setup: warning: /usr/lib/apt-setup/generators/40cdrom returned error code 1; discarding output

apt-setup tries to create a list entry in /etc/sources.list for the CD. I think this entry should be removed at the end of installation. Is that correct? (It didn't on my last installation.) Assuming the entry is only valid during installation, apt-setup should simply look in /cdrom (or create a symlink from /cdrom to /target/media/cdrom0) and not try to (u)mount anything. I consider this a bug in apt-setup that should be remedied whether or not the loopmount patch is included.

This bug is no big problem for the netinstall ISO, because it does not load any more packages from the ISO, but for a full ISO this is a critical problem.
Have you ever tried the patch with a full image?

Best regards,
Andreas

Attachment: Apply-Patch.sh
Description: application/shellscript


Reply to: