mkinitramfs: /etc/mkinitramfs as default

Bug #24098 reported by Juanje Ojeda on 2005-10-17
6
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Medium
Scott James Remnant (Canonical)

Bug Description

I was trying to test and play a bit with my own config dir and I found the
/etc/mkinitramfs/ was as default in a part of the script. And I couldn't work
properly until I've changed the script:

<patch>
--- mkinitramfs 2005-09-17 19:28:59.000000000 +0100
+++ mkinitramfs.mine 2005-10-17 03:42:29.666331280 +0100
@@ -119,11 +119,11 @@
 ln -s /usr/lib/klibc/lib/* ${DESTDIR}/lib
 copy_exec /usr/share/initramfs-tools/init /init
 cp -a /usr/share/initramfs-tools/scripts/* ${DESTDIR}/scripts
-for f in $(cd /etc/mkinitramfs/scripts && \
+for f in $(cd ${CONFDIR}/scripts && \
        find . \( -name '*.dpkg*' -prune -o -name '*~' -prune \) \
                -o -type f -print); do
        mkdir --parents ${DESTDIR}/scripts/$(dirname ${f})
-cp -p /etc/mkinitramfs/scripts/${f} ${DESTDIR}/scripts/$(dirname ${f})
+cp -p ${CONFDIR}/scripts/${f} ${DESTDIR}/scripts/$(dirname ${f})
 done
 copy_exec ${CONFDIR}/initramfs.conf /conf
 cp -a /etc/udev ${DESTDIR}/etc
</patch>

I don't know if this is useful for everybody, but it was for me. I hope it be
helpful.
Thanks

Jeff Bailey (jbailey) wrote :

These patches are correct. Thanks for catching these! I'll have them in my
next upload.

Jeff never did that upload, but somebody else popped onto IRC with the same idea
so I did! :)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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