Bug#490396: initramfs-tools: fails to start md devices - Debian

This is a discussion on Bug#490396: initramfs-tools: fails to start md devices - Debian ; Package: initramfs-tools Version: 0.92b Severity: normal Tags: patch I have started pulling in some Lenny packages onto my Etch machine. After I installed the new initramfs-tools, the machine failed to boot. The cause was that mdadm failed to make the ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Bug#490396: initramfs-tools: fails to start md devices

  1. Bug#490396: initramfs-tools: fails to start md devices

    Package: initramfs-tools
    Version: 0.92b
    Severity: normal
    Tags: patch

    I have started pulling in some Lenny packages onto my Etch machine.
    After I installed the new initramfs-tools, the machine failed to boot.

    The cause was that mdadm failed to make the root filesystem available,
    due to a script which will run fine with the mkdir from coreutils, but
    which will fail when used with busybox.

    Patch follows:

    ---%<---snip---%<---snip---%<---snip---%<---snip---%<---snip---%<---

    diff -Naur initramfs-tools/hooks/mdadm initramfs-tools.new/hooks/mdadm
    --- initramfs-tools/hooks/mdadm 2007-02-24 15:47:39.000000000 +0000
    +++ initramfs-tools.new/hooks/mdadm 2008-07-12 03:29:42.000000000 +0000
    @@ -149,7 +149,7 @@
    fi

    if [ $use_temp -eq 1 ]; then
    - mkdir --parents ${DESTMDADMCONF%/*}
    + mkdir -p ${DESTMDADMCONF%/*}
    tmpfile="${DESTMDADMCONF}.tmp"
    if /usr/share/mdadm/mkconf > $tmpfile; then
    # all is well, we now have a temporary configuration file
    diff -Naur initramfs-tools/scripts/local-top/mdadm initramfs-tools.new/scripts/local-top/mdadm
    --- initramfs-tools/scripts/local-top/mdadm 2007-02-24 15:47:39.000000000 +0000
    +++ initramfs-tools.new/scripts/local-top/mdadm 2008-07-12 03:30:13.000000000 +0000
    @@ -62,7 +62,7 @@
    fi

    # handle /dev/md/X nodes
    -mkdir --parent /dev/md
    +mkdir -p /dev/md

    CONFIG=/etc/mdadm/mdadm.conf
    # in case the hook failed to install a configuration file, this is our last

    ---%<---snip---%<---snip---%<---snip---%<---snip---%<---snip---%<---

    -- System Information:
    Debian Release: lenny
    Architecture: i386 (i686)
    Kernel: Linux 2.6.18-6-k7
    Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)


  2. Bug#490396: initramfs-tools: fails to start md devices

    reassign 490396 busybox
    retitle 490396 busybox drops mkdir long option support since etch
    severity 490396 important
    tags 490396 - patch
    thanks

    also sprach John Newnham [2008.07.12.0553 +0200]:
    > The cause was that mdadm failed to make the root filesystem
    > available, due to a script which will run fine with the mkdir from
    > coreutils, but which will fail when used with busybox.


    I use it on a daily basis and this is new to me. But

    $ busybox mkdir --parents a
    mkdir: unrecognized option `--parents'

    you are right. This seems to have been dropped from busybox since
    etch. There is no entry in the changelog though.

    mdadm in lenny already uses -p rather than the long options, so if
    you had upgraded mdadm as well, the problem wouldn't have happened.

    I agree that this is a problem we should fix in time for lenny, but
    I can't fix it in mdadm. Thus I am reassigning to busybox, which
    should support long options for mkdir in lenny, possibly mark them
    deprecated, and only remove them for lenny+1.

    --
    .''`. martin f. krafft
    : :' : proud Debian developer, author, administrator, and user
    `. `'` http://people.debian.org/~madduck - http://debiansystem.info
    `- Debian - when you have better things to do than fixing systems

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEARECAAYFAkh4euAACgkQIgvIgzMMSnWZewCfRXlpDxnB+M BC6uTtB070CtGr
    r08An0jWvbEgyfug0zrIzDUPzBrg+KMc
    =qWgy
    -----END PGP SIGNATURE-----


  3. Processed: Re: Bug#490396: initramfs-tools: fails to start md devices

    Processing commands for control@bugs.debian.org:

    > reassign 490396 busybox

    Bug#490396: initramfs-tools: fails to start md devices
    Bug reassigned from package `initramfs-tools' to `busybox'.

    > retitle 490396 busybox drops mkdir long option support since etch

    Bug#490396: initramfs-tools: fails to start md devices
    Changed Bug title to `busybox drops mkdir long option support since etch' from `initramfs-tools: fails to start md devices'.

    > severity 490396 important

    Bug#490396: busybox drops mkdir long option support since etch
    Severity set to `important' from `normal'

    > tags 490396 - patch

    Bug#490396: busybox drops mkdir long option support since etch
    Tags were: patch
    Tags removed: patch

    > thanks

    Stopping processing here.

    Please contact me if you need assistance.

    Debian bug tracking system administrator
    (administrator, Debian Bugs database)


    --
    To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  4. Processed: Re: Bug#490396: initramfs-tools: fails to start md devices

    Processing commands for control@bugs.debian.org:

    > reassign 490396 busybox

    Bug#490396: initramfs-tools: fails to start md devices
    Bug reassigned from package `initramfs-tools' to `busybox'.

    > retitle 490396 busybox drops mkdir long option support since etch

    Bug#490396: initramfs-tools: fails to start md devices
    Changed Bug title to `busybox drops mkdir long option support since etch' from `initramfs-tools: fails to start md devices'.

    > severity 490396 important

    Bug#490396: busybox drops mkdir long option support since etch
    Severity set to `important' from `normal'

    > tags 490396 - patch

    Bug#490396: busybox drops mkdir long option support since etch
    Tags were: patch
    Tags removed: patch

    > thanks

    Stopping processing here.

    Please contact me if you need assistance.

    Debian bug tracking system administrator
    (administrator, Debian Bugs database)


    --
    To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  5. Bug#490396: marked as done (busybox drops mkdir long option support since etch)


    Your message dated Sun, 07 Sep 2008 11:32:03 +0000
    with message-id
    and subject line Bug#490396: fixed in busybox 1:1.10.2-2
    has caused the Debian Bug report #490396,
    regarding busybox drops mkdir long option support since etch
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system
    misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    490396: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490396
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems


+ Reply to Thread