This can be easily reproduced by having files or directories that
contain spaces in "/"

The sequence of the problem is below:

In /usr/sbin/mkinitramfs:

 87 # Check that we're using a new enough kernel version, first for ourselves,
 88 # then for each of the hooks, which can have a MINKVER variable defined
 89 check_minkver ${version}
 90 check_minkver ${version} /usr/share/initramfs-tools/hooks
 91 check_minkver ${version} ${CONFDIR}/hooks

The "check_minkver ${version}" calls without a second paramter.

In /usr/share/initramfs-tools/hook-functions

set_initlist was called whether or not a second parameter was given to
check_minkver

In  /usr/share/initramfs-tools/scripts/functions:

set_initlist()
{
        unset initlist
        for si_x in ${initdir}/*; do
                if [ ! -x ${si_x} ]; then
                        continue
                fi
                initlist="${initlist} $(basename ${si_x})"
        done
}

$(initdir} is empty so it became "/*" and resulted in the bug

-- 
Spurious errors from update-initramfs
https://launchpad.net/bugs/76131

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to