--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: adding a local preseed file into the initrd breaks CD/USB media usage
- From: Steve McIntyre <steve@einval.com>
- Date: Thu, 14 Sep 2023 22:45:12 +0100
- Message-id: <169472791215.2307145.2225210365175269960.reportbug@tack.local>
Source: debian-installer-utils
Version: 1.147
Severity: normal
I'm hacking together an installer for an rpi4 locally, copying all the
files onto a FAT-formatted USB drive. I also want to do some minor
config in a preseed late_command, so I've modified the initrd to add a
preseed file.
Unfortunately, once I added the preseed file d-i fails in
cdrom-detect. Digging further, I've found that this is because the USB
drive is already mounted on /media. This is caused by the "fetch-url"
command in preseed/preseed_fetch. In fetch-url-methods/file, we call
mountmedia to allow for preseed via USB from netboot - see commit
916a613577c5cd747d15b3d20f16b9518d7d54ea in 2013!!
This mountmedia is not needed in my case, and is what's breaking
things. As a workaround, I've added a preseed early_command for now to
*unmount* /media and all is well. But this code needs changing to not
run mountmedia unconditionally!
We already had a report from Bogdan Veringioiu about this problem back
in 2018... :-( [1]
[1] https://lists.debian.org/debian-boot/2018/04/msg00057.html
-- System Information:
Debian Release: 11.7
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldoldstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-23-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--- End Message ---
--- Begin Message ---
Source: debian-installer-utils
Source-Version: 1.148
Done: Steve McIntyre <93sam@debian.org>
We believe that the bug you reported is fixed in the latest version of
debian-installer-utils, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1051964@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Steve McIntyre <93sam@debian.org> (supplier of updated debian-installer-utils package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 11 Dec 2023 14:44:30 +0000
Source: debian-installer-utils
Architecture: source
Version: 1.148
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Steve McIntyre <93sam@debian.org>
Closes: 1051964
Changes:
debian-installer-utils (1.148) unstable; urgency=medium
.
[ Philip Hands ]
* fetch-url: when $dest == "", attempt the fetch, but discard the result
* fetch-url-methods/file: be more circumspect about (un)mounting /media
Closes: #1051964
Checksums-Sha1:
28e03231f448b0f6a9111139b93a5c8ab2a8d471 2184 debian-installer-utils_1.148.dsc
df19b8ca7153bad4bf2e49f6b7788baeca0a7a34 102828 debian-installer-utils_1.148.tar.xz
1308d9d85428d6ccaf7e4a0fbcd11cac33620134 6454 debian-installer-utils_1.148_source.buildinfo
Checksums-Sha256:
c5fb0b0a1f157c92f7d062d301836f94bc444fa9266e0347c4c296a4460877e9 2184 debian-installer-utils_1.148.dsc
968baff3fb00b629c3c0e2421e5190b537e520f3619a0e9cdf41362cd5157193 102828 debian-installer-utils_1.148.tar.xz
efb21853e88f61f942c697017f0137d8c8032bc28146c814fe6102b9d0141dcd 6454 debian-installer-utils_1.148_source.buildinfo
Files:
54b85eb957f36af8fd89bf1f7c5456a9 2184 debian-installer standard debian-installer-utils_1.148.dsc
9a10939cc372e3d7ecbdbbb2a98b74d0 102828 debian-installer standard debian-installer-utils_1.148.tar.xz
d560ed8bbca4afd4ffc2acd2abaf41b1 6454 debian-installer standard debian-installer-utils_1.148_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCAAvFiEEzrtSMB1hfpEDkP4WWHl5VzRCaE4FAmV3IfgRHDkzc2FtQGRl
Ymlhbi5vcmcACgkQWHl5VzRCaE6fJA/2PUgxH3AWeSxTbLMbxyYdENOm8qpBI/50
1J+NR8fvPTjaFvvvDIIqWMKsiTPN/ho7t2MDeL4d3Uo9c9LCzqqoY5JRV3SLiqrr
9sVzsgXjOtRAU55f+/W1f6Pet2PPmYb1MsG/Te8S5uyWt/sBW/ne8c9yTS+AYlCd
/8a1lmWRy/ruuBGRDlihW+Csnv/VhSaPsoN91SNl7gYuSBgV9Vf1AReyJ+P0VO9E
sg9MN1t07HUoHFrU2hI8Bf2o6DJ/vcC4Wbslco/sDxMH+NrDM3gHS0k7OioITj1H
sHpVt9MILzMVHuL0PTS/nIHNqli5IHj0T6UQYQ76vERBrCwKYCxZrH+1B01ixS2N
oiZTqVQ9k0yDC+h/lEc8IvRwutu+g6ULGTEyPO+dQ/ltrddf0kBhgu0b0Ti4lZi+
0gGKs1k9sp2RUr4lzxqjw8TJv3PvQk/+PD1tRc+IjkfcZU7iZrLYwZFUuxczlKUN
HHaXpfU8snBXVZ0C2BpI6L2p+5fQjHfr/ei+ZH5mw6i/7s3+NnNOXzjH5iU12Won
za2VprXBCs88N7SBGrEO7/M1k69KePuECyV2lYCzLa62bNPSgUvpDVMsfOML+73l
SRVjGVpBsgef6DC2vJPmsJKZRK8g6OWjbssYrpVBVMMxmQnfinaKqxyJfHZQ2GsZ
FQIYPx+CoA==
=3xpi
-----END PGP SIGNATURE-----
--- End Message ---