On 09/26/2009 06:18 PM, Stewart Adam wrote:
> On 2009/09/13 9:28 AM, Xose Vazquez Perez wrote:
>> hi,
>>
>> is there a _easy and fast_ way to update the kernel in the
>> liveusb distribution ?
> You can find out more information about this process by taking at the
> tools in the livecd-tools repository on Fedora Hosted... But in short it
> seems this goes into /etc/sysconfig/mkinitrd:
I call this the hard and long way ;-)
> LIVEOS=yes
> PROBE=no
> MODULES+="squashfs ext4 ext3 ext2 vfat msdos "
> MODULES+="sr_mod sd_mod ide-cd cdrom "
> MODULES+="ehci_hcd uhci_hcd ohci_hcd "
> MODULES+="usb_storage usbhid "
> MODULES+="firewire-sbp2 firewire-ohci "
> MODULES+="sbp2 ohci1394 ieee1394 "
> MODULES+="mmc_block sdhci sdhci-pci "
> MODULES+="pata_pcmcia "
> MODULES+="=ata sym53c8xx aic7xxx mptsas udf"
>
> I'm not sure about the =ata part, that's what seems to happen when you
> follow the script's logic in imgcreate/live.py. Give it a try, but if
> mkinitrd fails to work then try removing the "=" from the beginning of
> "=ata" or even just remove "=ata" completely.
>
Original initrd brings more modules:
aic7xxx ata_generic crc-itu-t drm ext2 fat firewire-core firewire-ohci
firewire-sbp2 i2c-algo-bit i2c-core i810 i830 i915 mga mmc_block mmc_core
mptbase mptsas mptscsih msdos nouveau output pata_acpi pata_ali pata_amd
pata_artop pata_atiixp pata_cmd640 pata_cmd64x pata_cs5520 pata_cs5530
pata_cs5535 pata_cs5536 pata_cypress pata_efar pata_hpt366 pata_hpt37x
pata_hpt3x2n pata_hpt3x3 pata_it8213 pata_it821x pata_jmicron pata_marvell
pata_mpiix pata_netcell pata_ninja32 pata_ns87410 pata_ns87415 pata_oldpiix
pata_optidma pata_opti pata_pcmcia pata_pdc2027x pata_pdc202xx_old pata_qdi
pata_sch pata_serverworks pata_sil680 pata_sis pata_sl82c105 pata_triflex
pata_via r128 radeon sata_inic162x sata_mv sata_nv sata_promise sata_qstor
sata_sil24 sata_sil sata_sis sata_svw sata_sx4 sata_uli sata_via sata_vsc
savage scsi_transport_sas scsi_transport_spi sdhci sdhci-pci sis squashfs
sym53c8xx tdfx udf usb-storage vfat via video
I get the list doing:
$ cp initrd0.img img.gz ; gunzip img.gz
$ mkdir d ; cd d ; cpio -idv < ../img
$ (for i in `find . | grep "\.ko$"`; do basename $i | sed 's/.ko//' ; done )
| sort
> Once /etc/sysconfig/mkinitrd file is in place, create your new initrd
> image with mkinitrd (remember if applicable to restore the system's
> /etc/sysconfig/mkinitrd back). Then, copy your newly created initrd
> image and kernel image (/boot/vmlinuz-$version) into the "sysconfig"
> directory of the LiveUSB and change the syslinux or grub boot
> configuration files appropriately (these are also in the syslinux/
> directory on the USB key).
here I use mkliveinitrd.
*I believe it should have a easiest way to do it.*
-thanks-
regards,
--
«Allá muevan feroz guerra, ciegos reyes por un palmo más de tierra;
que yo aquí tengo por mío cuanto abarca el mar bravío, a quien nadie
impuso leyes. Y no hay playa, sea cualquiera, ni bandera de esplendor,
que no sienta mi derecho y dé pecho a mi valor.»
___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list