Bug getting and cheking the configuration directory command line option

Bug #5737 reported by keymon
4
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Medium
Scott James Remnant (Canonical)

Bug Description

The script /usr/sbin/mkinitramfs gets the option -d to set the configuration directory to read from. There are a pair of typos when this option is parsed:

...
CONFDIR="${OPTAGS}"
if [ ! d "${CONFDIR}" ]; then
...

it should be:

...
CONFDIR="${OPTARG}"
if [ ! -d "${CONFDIR}" ]; then
...

Changed in initramfs-tools:
assignee: nobody → keybuk
Revision history for this message
keymon (keymon) wrote :

There is also a problem with the CONFDIR path when the hooks are called. Here comes the diff:

156c156
< run_scripts /etc/mkinitramfs/hooks
---
> run_scripts ${CONFDIR}/hooks

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This was fixed a very long time ago

Changed in initramfs-tools:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.