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

Bug#358532: installation-reports: sparc ultra 1 reboot fails



reassign 358532 base-installer
severity 358532 wishlist
retitle 358532 Please make sure that sbus modules make it to initrd on sparc32
thanks

On Thu, 13 Apr 2006, Frans Pop wrote:

On Thursday 13 April 2006 22:35, Markus Ingvarsson wrote:

The interesting question is really, where is the initrd generated by
d-i? Where would it be a good idea to try making the needed
modifications? It wouldn't be enough just adding a register-module
command to the hw-detect script, would it?

It is generated on the fly, at kernel installation time. As discussed with Frans, the base-installer needs to modify the config files of initrd generators (yaird, initramfs-tools) to make sure that at least the esp module is included there. I've sent the attached patch against base-installer to him privately for review, but he's been a bit busy lately. I'm sure that he'll take care of it at some point.

Best regards,

Jurij Smakov                                        jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/                   KeyID: C99E03CC
--- postinst.orig	2006-04-06 22:24:38.000000000 -0700
+++ postinst	2006-04-06 23:04:27.000000000 -0700
@@ -683,6 +683,18 @@
 				echo "RESUME=$resume" >> $ramdiskconf
 			fi
 		fi
+
+		# sparc32 kludge
+		if [ "$MACHINE" = sparc ]; then
+			yaird_conf='/target/etc/yaird/Default.cfg'
+			if [ -f "$yaird_conf" ]; then
+				sed -e '/END GOALS/s/^/\t\tMODULE esp\n/' < $yaird_conf > $yaird_conf.new && mv $yaird_conf.new $yaird_conf
+			fi
+			initramfs_conf='/target/etc/mkinitramfs/modules'
+			if [ -f "$initramfs_conf" ]; then
+				echo 'esp' >> $initramfs_conf
+			fi
+		fi
 	else
 		info "Not installing $package."
 	fi

Reply to: