Bug#419141: iso-scan: Allow multiple architecture iso images
Package: iso-scan
Version: 1.19
Severity: wishlist
Tags: patch
The vollowing patch would allow you have have both the i386 and amd64 ISO
images on a USB key, and the correct one would be mounted based on whether
you booted a 32 or 64 bit kernel.
*** iso-scan.postinst.orig Fri Apr 13 14:48:55 2007
--- iso-scan.postinst Fri Apr 13 13:56:01 2007
***************
*** 19,25 ****
}
is_debian_iso () {
! test -e /cdrom/.disk/info
}
register_cd () {
--- 19,34 ----
}
is_debian_iso () {
! if [ -e /cdrom/.disk/info ] ; then
! case "$(archdetect)" in
! i386/*)
! test -e /cdrom/install.386 ;;
! amd64/*)
! test -e /cdrom/install.amd ;;
! *)
! return 1
! esac
! fi
}
register_cd () {
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.4
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Reply to: