update-initramfs ignores custom scripts in /etc/initramfs-tools/scripts
Bug #725144 reported by
Igor
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools |
New
|
Undecided
|
Unassigned |
Bug Description
I am attempting to customize my initrd. I have added a script to /etc/initramfs-
When I verify the contents of the resulting initrd image (using the gzip/cpio command given in the man page), I do not see my custom script in the /scripts folder. I have tried both the '-c' and the '-u' flags to `update-initramfs`.
I am experimenting on an up-to-date 10.04.2
To post a comment you must log in.
i figured out the problem. i strace'ed update-initramfs and noticed it was cd'ing into /etc/initramfs- tools/scripts and then looking for scripts using the following `find` command:
find . -regextype posix-extended -regex '.*/[[:alnum:]_]+$' -type f
i had named my script network-order.sh, and so it was not being matched by the regexp. i think the solution is to either update the documentation to indicate that custom scripts must only contain alphanumeric characters or update the regular expression to include additional characters. one likely regexp is '.*/[^/]+$' but i don't speak posix-extended so i'll leave this for someone else to translate