run_scripts_optional sets 'y' value but call_scripts checks for 'optional' value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools |
New
|
Undecided
|
Unassigned | ||
initramfs-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I looked into my initramfs and found there big graphics modules for hardware which I don't have.
I found a place where these modules were copied into initramfs, it was in /usr/share/
Also I found a recipe on the Internet, advising to put 'FRAMEBUFFER=n' into initramfs.conf to exclude optional hooks and scipts which have OPTION=FRAMEBUFFER in them from initramfs creation
I tried to set this option and to update my initramfs, but did not succeed
So I examined mkinitramfs and related scripts and found this sequence in /usr/share/
run_scripts_
{
run_scripts "$@"
}
...
run_scripts()
{
...
}
...
call_scripts()
{
...
for cs_x in ${runlist}; do
...
if [ x"$call_
fi
...
done
...
}
As you see, variable 'call_scripts_
This is observed at least in up-to-date Ubuntu Xenial and Zesty
I will also check equivalent scripts in Debian testing/unstable and report my finding in a comment below.
ok, I found that Debian hook-functions script does not have 'run_scripts_ optional' function (in both 0.125 and 0.126 version of the package), so this is purely an Ubuntu problem.