On Wed, 24 May 2006, Joey Hess wrote:

> maximilian attems wrote:
> > latest initramfs-tools mv /etc/mkinitramfs /etc/initramfs-tools
> > for better consistency. (package on mentors not yet in unstable)
> > 
> > d-i uses in base-installer as confdir /target/etc/mkinitramfs/
> > in postinst. how should the transition happen?
> > could we coordinate an base-installer upload with newer 
> > initramfs-tools 0.61?
> 
> base-installer can be modified to write to /etc/initramfs-tools if the
> directory exists and fall back to the old /etc/mkinitramfs/modules
> otherwise. Here's the patch that should do that (untested):

woow already discovered it in svn trunk + unstable :)
 
> Index: debian/postinst
> ===================================================================
> +                 initramfs-tools)
> +                     ramdiskconf=/target/etc/mkinitramfs/initramfs.conf
> +                     ;;
> +                 yaird)
> +                     ramdiskconf=
> +                     ;;
> +                 initrd-tools)
> +                     if [ -d /target/etc/initramfs-tools ]; then
> +                             
> ramdiskconf=/target/etc/initramfs-tools/mkinitrd.conf
> +                     else
> +                             # old location
> +                             ramdiskconf=/target/etc/mkinitrd/mkinitrd.conf
> +                     fi
> +                     ;;

belows patch fixes the correct tools dir choice.
a bit annoyed by svn diff, i did _not_ touch the yaird entry.
thanks a lot for the quick support.


Index: debian/postinst
===================================================================
--- debian/postinst     (revision 37758)
+++ debian/postinst     (working copy)
@@ -673,19 +673,19 @@
                # Figure out how to configure the ramdisk creation tool.
                case "$package" in
                    initramfs-tools)
-                       ramdiskconf=/target/etc/mkinitramfs/initramfs.conf
-                       ;;
-                   yaird)
-                       ramdiskconf=
-                       ;;
-                   initrd-tools)
                        if [ -d /target/etc/initramfs-tools ]; then
                                
ramdiskconf=/target/etc/initramfs-tools/mkinitrd.conf
                        else
                                # old location
-                               ramdiskconf=/target/etc/mkinitrd/mkinitrd.conf
+                               
ramdiskconf=/target/etc/mkinitramfs/initramfs.conf
                        fi
                        ;;
+                   yaird)
+                       ramdiskconf=
+                       ;;
+                   initrd-tools)
+                       ramdiskconf=/target/etc/mkinitrd/mkinitrd.conf
+                       ;;
                    *)
                        db_subst base-installer/initramfs/unsupported GENERATOR 
"$package"
                        exit_error base-installer/initramfs/unsupported

-- 
maks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to