example-eikon-debian12-cloud-rootfs-swraid¶
Example Debian 12 cloud image converted to rootfs with software RAID configuration.
The image was downloaded and coverted to rootfs using the following commands.
curl -Lo debian12.tar.xz https://cdimage.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.tar.xz
tar xf debian12.tar.xz; virt-tar-out -a disk.raw / - | zstd -o debian12.tar.zst
drpcli files upload debian12.tar.zst as images/eikon/debian12.tar.zst
The initial image is a compressed raw disk. It was uncompressed, then coverted to rootfs using
virt-tar-out, a tool provided by the libguestfs-tools package.
This image won't work with swraid by default. There is no mdadm tools or drivers available in the image. To make it work, we add the packages in the chroot before first reboot, which requires access to whatever repo is enabled by default in the image.
For Debian, it is important that the swraid metadata is set to "1.0". This makes sure swraid information is stored at the end of the disk so efi can read the partition information correctly.
There is no sha256sum provided for the image. The example uses the latest image which is updated regularly.
Objects that Reference example-eikon-debian12-cloud-rootfs-swraid¶
Not used in current content packs
Objects used by example-eikon-debian12-cloud-rootfs-swraid¶
- params eikon/plan in field Params as value map[disks:[map[name:disk1 path:/dev/sda] map[name:disk2 path:/dev/sdb]] images:[map[type:tar-zst url:{{.ProvisionerURL}}/files/images/eikon/debian12.tar.zst]] swraids:[map[devices:[/dev/sda /dev/sdb] grub_device:true metadata:1.0 name:swraid1 partitions:[map[fs:map[fstype:vfat mount:/boot/efi name:fs1] id:1 name:part1 ptype:fat32 size:1G] map[fs:map[fstype:ext4 mount:/boot name:fs2] id:2 name:part2 ptype:ext4 size:1G] map[fs:map[fstype:ext4 mount:/ name:fs3] id:3 name:part3 ptype:ext4 size:REST]] ptable:gpt raid_level:1]]]