You are not logged in.

#1 2010-09-24 16:10:01

ZKDLBNHX
Member
From: UK
Registered: 2010-09-24
Posts: 12
Website

mkinitcpio bug + fix

Yes I know this should go in flyspray but flyspray won't let me sign up (it sais my email address is already registered, but the `forgotten paasword' button thingy asks for my username which I don't know).

Anyway, I have a usb flash drive raid array for a root partition, and initrd wouldn't mount it simply because it didn't wait long-enough for the usb drives to settle before trying to run mdassemble.

Fixed simply by changing /lib/initcpio/hooks/mdadm to contain:

run_hook ()
{
  until [[ -b /dev/disk/by-id/usb-Lexar_USB_Flash_Drive_CSX364JMU89PIS6AERB4-0:0 ]] && [[ -b /dev/disk/by-id/usb-Lexar_USB_Flash_Drive_TG50AKWUNF92TULZRXMG-0:0 ]] && [[ -b /dev/disk/by-id/usb-Lexar_USB_Flash_Drive_W41DHVIMVGGVE1IYOZKM-0:0 ]] && [[ -b /dev/disk/by-id/usb-Lexar_USB_Flash_Drive_Z7MSL5ULJ2IJXBILT3C1-0:0 ]] ; do
    sleep 1
  done
  /sbin/mdassemble
}

Obviously this fix is specific to my system but you get the idea. And sleep 1 might be too long perhaps 0.1 would be better.

I hope someone can submit it to the bug tracker for me ty.


Linux is not an operating system it's a kernel. You're using GNU/Linux.
Try Parabola: 100% free Arch repos

Offline

#2 2010-09-25 08:18:51

ZKDLBNHX
Member
From: UK
Registered: 2010-09-24
Posts: 12
Website

Re: mkinitcpio bug + fix

Yeah I tested with `sleep 0.1' and it works fine.


Linux is not an operating system it's a kernel. You're using GNU/Linux.
Try Parabola: 100% free Arch repos

Offline

#3 2010-10-08 16:46:29

ZKDLBNHX
Member
From: UK
Registered: 2010-09-24
Posts: 12
Website

Re: mkinitcpio bug + fix

Hi,

I've now found a bug in /etc/rc.sysinit.

It doesn't probe partition tables after activating encrypted devices, so if you have a partition table on top of an encrypted block device it cannot use it.

fix:

partprobe /dev/mapper/<device>

Before the fsck stage.

Thanks peeps and I hope someone can add it to the bug tracker for me.


Linux is not an operating system it's a kernel. You're using GNU/Linux.
Try Parabola: 100% free Arch repos

Offline

#4 2010-10-14 18:22:01

ZKDLBNHX
Member
From: UK
Registered: 2010-09-24
Posts: 12
Website

Re: mkinitcpio bug + fix

I tried to make an account with a different email address and I didn't even receive my code.


Linux is not an operating system it's a kernel. You're using GNU/Linux.
Try Parabola: 100% free Arch repos

Offline

#5 2010-10-14 19:22:47

ZKDLBNHX
Member
From: UK
Registered: 2010-09-24
Posts: 12
Website

Re: mkinitcpio bug + fix

Finally; I received my code.


Linux is not an operating system it's a kernel. You're using GNU/Linux.
Try Parabola: 100% free Arch repos

Offline

#6 2010-10-25 08:59:34

Fackamato
Member
Registered: 2006-03-31
Posts: 576

Re: mkinitcpio bug + fix

partprobe can also be used without a parameter (then it rescans all devices for partitions).

Interesting.

Offline

Board footer

Powered by FluxBB