Bug#501306: update-grub fails silently with wrong device.map
Martin Hansen
mah at cfsi.dk
Tue Oct 28 13:44:44 UTC 2008
Tirsdag den 28. Oktober 2008 skrev Raphael Hertzog:
> - the installation will still fail and most users have no idea what
> device.map really is. If you go that route, you should at least give
> them the command-line to execute to regenerate the device.map
> But in the mean time for Grub 1, wouldn't the best solution simply be
> to regenerate the device.map in case of errors and try again ?
the command-line is already in the script, so a switch and/or env. variable,
telling grub to overwrite device.map, combined with an error mesage like this
on grub-probe fail:
"something went wrong with grub-probe. maybe a problem of your device.map file
If You dont' know what device.map is, try regenerate this by running
grub-update as:
grub-update --replace-devicemap"
path in the region of
- if ! test -e ${device_map} ; then
+ if ! test -e ${device_map} -o {switch/env. check} ; then
echo quit | grub --batch --no-floppy\
--device-map=${device_map} /dev/null
fi
--
Med venlig hilsen / Mojn / Best regards
Martin Hansen
Opensource Software Specialist
Center for Software Innovation
Alsion 2
DK-6400 Snderborg
Tel.:+4573477000
Dir.:+4573477017
Mail:mah at cfsi.dk
Web :www.cfsi.dk
Kommende CSI arrangementer:[http://www.cfsi.dk/Default.aspx?ID=27]
Kursus: Basiskursus Embedded Linux
IT i jordhøjde
AFLYSNING: FPGA-days
Morgenmadsmøde: Innovation og kreativitet, hvordan hænger det sammen
i en mekatronik virksomhed?
Teknologikaravanen
More information about the Pkg-grub-devel
mailing list