[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#281658: initrd-tools: "cat: getroot: No such file or directory" due to /etc/raidtab parse error



Hi Kalle,

Kalle Olavi Niemitalo wrote:

However, my /etc/raidtab has lines like this:

	device	/dev/hde1	raid-disk	0
	device	/dev/hdg1	raid-disk	1


I don't have access to a raid system, but maybe the attached
patch to mkinitrd works. Would you mind to check? To be sure:
It is completely untested. Please make a backup of your old
initrd image.


Good luck

Harri
--- mkinitrd~	2004-11-09 07:41:29.000000000 +0100
+++ mkinitrd	2004-11-18 19:07:22.243304461 +0100
@@ -134,6 +134,9 @@
 		}
 		$1 == "device" {
 			device = $2
+			if ($3 == "raid-disk") {
+				print device >> "getroot"
+			}
 		}
 		$1 == "raid-disk" {
 			print device >> "getroot"

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: