[patch] install to pcmcia-connected disk can't find root

Bug #27172 reported by Tormod Volden on 2005-12-15
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)

Bug Description

I have an external USB drive, connected through a PCMCIA-USB interface. The Dapper Flight-5 install CD installs to the drive without any complains, but the
system is not bootable. The initrd contains the usb modules, but not the pcmcia modules.

(I have grub and a copy of kernel and initrd on an internal IDE drive.)

Adding pcmcia and yenta-socket to /etc/initramfs/modules and making a new initrd fixes it for me.

Tormod Volden (tormodvolden) wrote :

I guess initramfs-tools is working as it should, but has to be set up correctly on the install CD.

Colin Watson (cjwatson) wrote :

Nope, this is initramfs-tools' job to sort out for itself.

Here is a little patch that adds pcmcia and yenta-socket to the "base" modules that get installed in all initrd's.

This patch (a new file in fact) is a hook that checks if the pcmcia module is already loaded on the running system, and if so, add the modules to the generated initrd.

This should work inside the installer, since the installer already has the pcmcia module loaded if needed.

Sorry, the previous patch failed to add yenta_socket.

During installation (tried again now with flight-5), "Installing extra packages" automatically installs the pcmcia-cs package. Maybe the cleanest solution would be if that package contained this hook. Then the ugly lsmod check in the previous patch can be removed.

Adding PREREQ="udev" is probably correct too.

Should this be reassigned to pcmcia-cs?

description: updated

Should include pcmciautils as well, otherwise older sockets won't work

Paul Sladen (sladen) on 2006-06-08
Changed in initramfs-tools:
status: Unconfirmed → Needs Info
Tormod Volden (tormodvolden) wrote :

Feisty Herd-2: The initrd on the Desktop CD (as well as on the installed system afterwards) has got the pcmcia_core.ko and pcmcia.ko, but is missing yenta_socket.ko and rsrc_nonstatic.ko.

Tormod Volden (tormodvolden) wrote :

I don't see why this was Needsinfo.

Changed in initramfs-tools:
status: Needs Info → Unconfirmed
Adam Conrad (adconrad) on 2008-01-23
Changed in initramfs-tools:
assignee: adconrad → nobody
Daniel T Chen (crimsun) wrote :

lowering severity due to extant workaround

Changed in initramfs-tools:
importance: Medium → Low
Colin Watson (cjwatson) on 2009-01-27
Changed in initramfs-tools:
status: New → Confirmed
Tormod Volden (tormodvolden) wrote :

I guess it would solve the issue if MODULES was set to "dep" and not "most" in /etc/initramfs-tools/initramfs.conf.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.