[issue1169] findiso/toram still looks for squashfs in live/*.squashfs

Marc 'Zugschlus' Haber bts at bts.grml.org
Thu May 17 22:58:09 CEST 2012


New submission from Marc 'Zugschlus' Haber <mh+bts-grml at zugschlus.de>:

Hi,

my main use of grml is booting the iso from a disk using the following grub
configuration:

menuentry "grml64-small_2012.05-rc1" {
  loopback loop /boot/grml/grml64-small_2012.05-rc1.iso
  linux (loop)/boot/grml64small/vmlinuz quiet lang=de boot=live noquick noeject
noprompt nodhcp bootid=grml64small201205rc1 radeon.modeset=1 keyboard=de
findiso=/boot/grml/grml64-small_2012.05-rc1.iso toram=grml64-small.squashfs
  initrd (loop)/boot/grml64small/initrd.img
  }

This stopped working quite a while ago (well before the last release) when the
squashfs was moved from - for example - live/grml64-small-daily-sid.squashfs to
- for example - live/grml64/grml64.squashfs. The code in is_live_path ()
{
        DIRECTORY="${1}"

        if [ -d "${DIRECTORY}"/"${LIVE_MEDIA_PATH}" ]
        then
                for FILESYSTEM in squashfs ext2 ext3 ext4 xfs dir jffs2
                do
                        if [ "$(echo ${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILE
                        then
                                return 0
                        fi
                done
        fi

        return 1
}

still looks in live/ only, not in subdirectories of live/.

I cannot suggest a patch at the moment since I do not quite know what do to
here. But this bug should be easy enough to fix with the current diagnosis.

Sorry for not detecting this any earlier.

Greetings
Marc

----------
messages: 4354
nosy: zugschlus
priority: bug
status: unread
title: findiso/toram still looks for squashfs in live/*.squashfs

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1169>
_____________________________________


More information about the Bugs-changes mailing list