Hi J,
sorry for the late response
> We install our (oem) image on hardware that contain disks that are
> attached to a hardware RAID adapter. This adapter may be completely
> UN-configured at boot time.
ok
> We have the script code to use command
> line tools to configure the disks to the proper RAID configuration
> (i.e. configure one "root" OS drive and the rest to one big logical
> drive for all of our resources.) This code could not be executed
> before running on the actual hardware.
ok
> Where is the best place to "put"
> (i.e. configure in the config.xml) the RAID configuration code that
> would be before the attempt to read the the hardware disks?
I think you need this extra code running as part of the initrd
to prepare your hardware raid. In kiwi-ng the initrd is using
the dracut system and you can extend this by your own module.
How to put your custom code as a dracut module is documented here
https://osinside.github.io/kiwi/concept_and_workflow/customize_the_boot_process.html#boot-image-hook-scripts
dracut itself provides several stages.
cmdline|pre-udev|pre-trigger|initqueue|pre-mount|mount|pre-pivot|cleanup
which stage is appropriate in your case you need to find out
Hope this helps a bit
Regards,
Marcus
--
Public Key available via:
https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer Brunnenweg 18
Tel:
+49 7562 905437 D-88260 Argenbühl
Germany
-------------------------------------------------------