Hi,
> I have an OEM image based on Leap 42.3 that builds/installs fine
> (pertty much...). I want to make a variation on this where the
> complete installed image is read-only. All writes are to RAM.
I think you are talking about an overlay system. kiwi supports this
with a squashfs compressed read-only root system overlayed using
the overlayfs filesystem into an extra read-write partition.
All is read-only (except boot, grub2 can't read from squashfs)
and all writes go to an extra partition with a filesystem of your
choice
For oem images the type setup would look like this:
<type
image="oem"
filesystem="ext4"
initrd_system="dracut"
overlayroot="true"
installiso="true"
bootloader="grub2"
boot="oemboot/suse-leap42.3"
kernelcmdline="splash"
firmware="efi"
>
In your packages section you also need
<packages type="image">
...
<package name="dracut-kiwi-overlay"/>
</packages>
Notes:
- When using a root overlay all other fancy filesystem variations
like btrfs volumes/snapshots or lvm volumes will no longer work
because that is incompatible with the kernel overlayfs
- I'm not completely finished with porting oem repartition and other
code from the kiwi oemboot code into dracut modules. Thus if you
build the image as indicated above only the deployment code in
the generated .install.iso file will be able to repartition and
resize the target disk. If you just dump the .raw disk on the
target the code to resize and repartition is missing because
the boot in this image is a dracut initrd
- Overall the above type will fundamentally change your image.
It's still an oem image in kiwi speak but it's no longer the
same thing as you build before due to a completly different
technology to run the OS. Thus thinking it's the same but
just read-only writing somewhere else is not correct
- The documentation on
http://doc.opensuse.org/ is for v7 the
next generation kiwi docs does not yet provide a section for
overlayed root images, because I'm not done with it and the
prio is low at the moment
- I would not try to keep two variants via profiles in one image
description. The reason is I consider the result as too different
and that should be worth two independent image descriptions
Regards,
Marcus
--
Public Key available via:
https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer (Res. & Dev.) SUSE Linux GmbH
Tel: 0911-740 53 0 Maxfeldstrasse 5
FAX: 0911-740 53 479 D-90409 Nürnberg
HRB: 21284 (AG Nürnberg) Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
http://www.suse.de
-------------------------------------------------------