Bug#684293: installation-reports: Installer hangs at iso-scan step while mounting an extended partition
Package: installation-reports
Severity: important
The Wheezy hd-media installer (daily from 08-08) hangs at the
step "Searching drives for an installer ISO image",
while mounting the extended partition /dev/sda4.
This partition should never be mounted.
The ouptut of ps w is given below:
1291 root 5728 S udpkg --configure --force-configure iso-scan
1292 root 3980 S {iso-scan.postin} /bin/sh /var/lib/dpkg/info/iso-
scan.postinst configure
1379 root 8432 S udevd --daemon --resolve-names=never
1380 root 8264 S udevd --daemon --resolve-names=never
1898 root 0 SW [jbd2/sda3-8]
1899 root 0 SW< [ext4-dio-unwrit]
1904 root 0 SW< [loop0]
1941 root 0 SW< [loop1]
1960 root 3980 R mount -t auto -o ro /dev/sda4 /hd-media
1969 root 3980 R ps w
As a workaround the process 1291 can be killed to continue with the
installation.
The hang is caused by the script iso-scan.postinst (package: iso-scan), where
the extended partition is not omitted from the device list.
This bug has the same cause as the mountmedia bug #683849.
The following untested patch should solve this issue:
--- a/iso-scan-1.40/debian/iso-scan.postinst
+++ b/iso-scan-1.40/debian/iso-scan.postinst
@@ -274,7 +274,16 @@ while :; do
mkdir /cdrom 2>/dev/null || true
mkdir /hd-media 2>/dev/null || true
- DEVS="$(list-devices partition; list-devices disk; list-devices maybe-usb-floppy)"
+ tmpdevs="$(list-devices partition; list-devices disk; list-devices maybe-usb-floppy)"
+ DEVS=
+ # Remove extended partitions
+ for tmpdev in $tmpdevs; do
+ PARTITION_TYPE="$(blkid -p -s PART_ENTRY_TYPE $tmpdev | cut -d ' ' -f 2 | cut -d \" -f 2)"
+ if [ "$PARTITION_TYPE" != "0x5" ] && [ "$PARTITION_TYPE" != "0xf" ]; then
+ DEVS=${DEVS:+$DEVS\\n}$tmpdev
+ fi
+ done
+
log "devices found: '$DEVS'"
STATE=10
continue
-- Package-specific info:
Boot method: USB disk
Image version: Daily installer from 08-08
Date: 08-08-2012
Machine: Lenovo Thinkpad T61p
Partitions: <df -Tl will do; the raw partition table is preferred>
Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it
Initial boot: [O ]
Detect network card: []
Configure network: [ ]
Detect CD: [ ]
Load installer modules: [ ]
Detect hard drives: [ ]
Partition hard drives: [ ]
Install base system: [ ]
Clock/timezone setup: [ ]
User/password setup: [ ]
Install tasks: [ ]
Install boot loader: [ ]
Overall install: [ ]
Comments/Problems:
Reply to: