Package: extlinux
Version: 3:6.03~pre1+dfsg-4
Followup-For: Bug #750851

So I looked more into this and the memtest binaries end in .bin but
memdisk requires .img suffix. Easily fixable with a symlink. Perhaps a
memtest extlinux.d entry could create them?

Anyway, even with a symlink the memtests do not boot.

You need something like the following patch because memdisk relies on
_BOOT_DIRECTORY which is local to 0010-linux.

Thanks

Michal

--- /etc/extlinux.d/0000-defaults~      2014-06-07 18:09:59.313304423 +0200
+++ /etc/extlinux.d/0000-defaults       2014-06-07 18:08:22.364125138 +0200
@@ -77,6 +77,16 @@
 
 EXTLINUX_TIMEOUT="${EXTLINUX_TIMEOUT:-50}"
 
+if [ "$(stat --printf %d /)" = "$(stat --printf %d /boot)" ]
+then
+        # / and /boot are on the same filesystem
+        _BOOT_DIRECTORY="/boot"
+else
+        # / and /boot are not on the same filesystem
+        _BOOT_DIRECTORY=""
+fi
+
+
 # Writing new default file
 cat > "/etc/default/extlinux" << EOF
 ## /etc/default/extlinux - configuration file for extlinux-update(8)
@@ -94,4 +104,5 @@
 EXTLINUX_ROOT="${EXTLINUX_ROOT}"
 EXTLINUX_THEME="${EXTLINUX_THEME}"
 EXTLINUX_TIMEOUT="${EXTLINUX_TIMEOUT}"
+_BOOT_DIRECTORY="${_BOOT_DIRECTORY}"
 EOF
--- /etc/extlinux.d/0010-linux~ 2014-06-07 18:11:11.867186456 +0200
+++ /etc/extlinux.d/0010-linux  2014-06-07 18:11:33.930544528 +0200
@@ -32,16 +32,6 @@
 # Find linux versions
 _VERSIONS="$(cd /boot && ls vmlinuz-* | grep -v .dpkg-tmp | sed -e 
's|vmlinuz-||g' | sort -Vr)"
 
-if [ "$(stat --printf %d /)" = "$(stat --printf %d /boot)" ]
-then
-       # / and /boot are on the same filesystem
-       _BOOT_DIRECTORY="/boot"
-else
-       # / and /boot are not on the same filesystem
-       _BOOT_DIRECTORY=""
-fi
-
-
 for _VERSION in ${_VERSIONS}
 do
        echo "P: Writing config for /boot/vmlinuz-${_VERSION}..."

-- System Information:
Debian Release: 7.4
  APT prefers stable
  APT policy: (990, 'stable'), (171, 'unstable'), (151, 'experimental'), (121, 
'precise-updates'), (121, 'precise-security'), (121, 'precise'), (101, 
'stable'), (101, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages extlinux depends on:
ii  libc6  2.18-4

Versions of packages extlinux recommends:
ii  os-prober        1.63
ii  syslinux-common  3:6.03~pre1+dfsg-4

extlinux suggests no packages.

-- debconf information:
* extlinux/install: true


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to