Bug#399168: grub-disk works when recompiled.
Franklin PIAT
fpiat at bigfoot.com
Sun Jan 13 00:16:42 UTC 2008
Package: grub
Version: 0.97-27
Followup-For: Bug #399168
For the records, grub-disk actually works, if you rebuild it (!)
Eventhough ext2fs image fails under both Etch (0.97-27)
and Lenny (0.97-28) grub-disk, Both images boots when I
recompile them.
# Debian/Etch Official Package :
$cd /usr/share/grub-disk/
$ls -al *ext2*
-rw-r--r-- 1 root root 69498 Mar 30 2007 grub-0.97-i486-pc.ext2fs.gz
$gzip -dc grub-0.97-i486-pc.ext2fs.gz > /tmp/grub-etch.ima
$file -k /tmp/grub-etch.ima
/tmp/grub-etch.ima: Linux rev 1.0 ext2 filesystem data
$qemu -hda /tmp/grub-etch.ima
.... Boot fails... Not a bootable floppy disk.
#Let's rebuild grub-disk
$apt-get install apt-build
$apt-build update
$apt-build build-source grub
$mkdir /tmp/etch-rebuild
$dpkg-deb --extract \
/var/cache/apt-build/repository/grub-disk_0.97-27_all.deb \
/tmp/etch-rebuild/
$gzip -dc \
/tmp/etch-rebuild/usr/share/grub-disk/grub-0.97-i486-pc.ext2fs.gz \
> /tmp/etch-rebuild/grub-disk.ima
$file -k /tmp/etch-rebuild/grub-disk.ima
/tmp/etch-rebuild/grub-disk.ima: x86 boot sector, code offset 0x48\012-
Linux rev 1.0 ext2 filesystem data\012- DOS executable (COM), boot code
$qemu -hda /tmp/grub-etch.ima
# Works !
#Lenny : It's exacly the same as for etch. I've _also_ noticed that
# the image is x86_64. i'm not sure if it's BUILD ot HOST arch...
$cd /usr/share/grub-disk/
$ls -al *ext2*
/usr/share/grub-disk/grub-0.97-x86_64-pc.ext2fs.gz
$dpkg-architecture | grep DEB_HOST_ARCH_CPU
DEB_HOST_ARCH_CPU=i386
gzip -dc grub-0.97-x86_64-pc.ext2fs.gz | -k file -
/dev/stdin: Linux rev 1.0 ext2 filesystem data
etc..
Franklin
-- System Information:
Debian Release: 4.0
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.23-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages grub depends on:
ii libc6 2.7-5 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for terminal hand
grub recommends no packages.
-- no debconf information
More information about the Pkg-grub-devel
mailing list