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

more <kernel-image>.bin breakage



-if [ -f linux.gz -a "$Arch" != "alpha" ]; then
-	zcat linux.gz > ${DDIR}/boot/vmlinux-${VERSION}
+if [ -f linux.bin.gz -a "$Arch" != "alpha" ]; then
+	zcat linux.bin.gz > ${DDIR}/boot/vmlinux-${VERSION}

That's part of install.sh, on rescue.bin, which is a real problem if
rescue.bin is mounted as type msdos.  In that case, the test for
linux.bin.gz succeeds, even if the file is really called linux.bin

Found this on ia64, but will break on other archs that use msdos/fat/vfat
rescue.bin images.

>From utilities/dbootstrap/choose_medium.c:

const char *fs_type_tab[] = { "auto", "msdos", "vfat", "fat", "minix", "ext2", NULL };

so the code first tries to mount rescue.bin as type 'auto'.  That's fine
on a normal system, where mount chooses vfat.  Under b-f, mount chooses
msdos.

I don't know the difference between msdos and fat, but perhaps we should
change the above to

const char *fs_type_tab[] = { "vfat", "fat", "msdos", "minix", "ext2", NULL };

of course, that is no good if any of the affected archs don't have vfat
support in their kernel.

Any better ideas?

Richard



Reply to: