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

Bug#696877: installation-reports: Wheezy DI-b4-amd64-netboot-mini.iso from an usb stick fails trying to install grub



Hi,

It looks like some code is already there to avoid cdrom or USB install
media being used as the grub-install target.

In the grub-installer script:
>  552 # [...] if /cdrom seems
>  553 # to be a USB stick then (hd0) may not be safe.  If we hit either of those
>  554 # checks, then try the disk containing /boot instead.
>  555 # The same goes for /hd-media, so avoid installing there as well.
>  556 cdsrc=$(mount | grep "on /cdrom " | cut -d' ' -f1)
>  557 cdfs=$(mount | grep "on /cdrom " | cut -d' ' -f5)
>  558 hdsrc=$(mount | grep "on /hd-media " | cut -d' ' -f1)

For hybrid media on USB it seems that /cdrom will be iso9660, so the
next thing preventing an install to (hd0) is if cdrom-detect/hybrid is
set to true.

This seems a bit of a long shot, but in cdrom-detect it looks like this
might go wrong if `list-devices cd; list-devices maybe-usb-floppy` finds
the install media before `list-devices usb-partition` does.

If someone who has hardware that can reproduce this, could please do the
following, it could really help explain this:

1. boot a USB install up to the 'Configure the network' step,
2. drop to the Alt-F2 shell,
3. run these commands and note the output from them:
# mount | grep cdrom
# list-devices cd
# list-devices maybe-usb-floppy
# list-devices usb-partition
# list-devices disk

Thanks!
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: