Hi,
> I created an OEM image and installed it to VROC RAID1 disks, which is
> configured at BIOS. I know this is a BIOS/software RAID, so I added
> "mdraid=mirroring" at config.xml.
Ah, there might be a misunderstanding of the mdraid attribute in kiwi.
If you create an image with mdraid configured, it will be a disk image
that itself provides the software raid for you. As we don't know how
many other disks this raid will receive and from where, kiwi can only
create it in degraded mode. The workflow for this use case therefore
is:
- I have a system with n disks and I want to use them in a raid
- I built an image that provides me the software raid feature and
it comes up with just this one disk in degraded mode
- After my image got deployed I add now available disks to my
raid
This is different from your use case because you have a system that
offers raid capabilities in its firmware. The workflow for your use case
therefore is:
- I have a system that supports raid and I want to use it
- I built an image that does NOT use mdraid, because that is provided
by the BIOS. My image however, must be smart enough to detect that
raid system, activate it and provide me a raid device that I can
use as target root device
- After my image got deployed I boot into a system that has root
on a raid device managed by the BIOS.
In order to achieve that I believe the following steps are needed
1. drop mdraid=mirroring from your config.xml
2. Provide a proper /etc/mdadm.conf that matches the requirements of
your BIOS raid array. You can create the file as kiwi overlay file
root/etc/mdadm.conf
3. Make sure etc/mdadm.conf is placed to the initrd. You can achieve this
by a dracut overlay file
root/etc/dracut.conf.d/raid.conf
with the content:
install_items+=" /etc/mdadm.conf "
4. Make sure your root= information matches the name of the raid device.
You can place this information to the kiwi config.xml file as
<type ... kernelcmdline="root=/dev/md0" .../>
And that should be it. btw, I haven't tested the above procedure
and I hope it helps you achieving your goals
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
-------------------------------------------------------