Well I didn't mean a rebuild from scratch. Just a rebuild based on modifying it. For myself I prefer to work on the KISS principle; if the proper way too involved and complicated, then I do it my way!
Okay, so my process is like this. I take the initrg.gz and unpack it to a custom folder. I like to do things the easy way so I tend to do it on the desktop, but you need to do it as root. I like to open a folder as root, if I can, but not all desktops have the menu as standard. If you are in luck then you will have a initrg.gz that contains a CPIO file you can open, generally from the archiver, and unpack the contents to a folder.
Once here I performs the mods. From experience you need the raid md modules. Sometimes it can be useful to check the /lib/modules/* of the installer initrd to see what ones it expects. You possibly could use a file list, such as one generated by find, to use as a source for needed modules. And use it copy those ones in, so that you have an X1000 modules folder, which replicates the included kernel modules. It may be easier to use the mkinitramfs command to build an initrd, which by default will pack most modules, then open it up the installer image and copy the X1000 modules folder to your initrd folder. You can remove the included modules folder with the generic ppc version as it won't be used with native X1000 modules in place, and you can save space. But leave all other files in place.
Code: Select all
mkinitramfs -o initrd.img
Code: Select all
# AmigaOne custom preseed configuration file
# Continue the install without loading kernel modules?
#
d-i anna/no_kernel_modules boolean true
# We don't have GRUB
#
d-i grub-installer/skip boolean true
# This partitioner doesn't have information about the default type of the partition tables on your architecture.
#
partman-partitioning partman-partitioning/unknown_label boolean true
# Continue without installing a kernel?
#
bootstrap-base base-installer/kernel/skip-install boolean true
bootstrap-base base-installer/kernel/image select none
# The kernel image (meta) package to be installed; "none" can be used if no
# kernel is to be installed.
d-i base-installer/kernel/image string none
# No boot loader installed
#
nobootloader nobootloader/confirmation_common note
Now, you've done this before, but it's ready to be repacked. CD into your custom initrd folder and run this as root:
Code: Select all
find . | cpio -H newc -o | gzip -9 -n >../initrd.gz