Image Customizer: Fix ISO customization. (#10885)

In change #10789, the `imagecustomizerapi.FileSystem` type had an internal field added called `PartitionId` which is filled in by the API validity checks.

ISO to ISO customization supports cracking open the squashfs file and modifying the Live-OS. However, to do this, a temporary OS image must be created. This creation logic uses the `imagecustomizerapi.FileSystem` type but the code wasn't updated to ensure the `PartitionId` field has a value.
This commit is contained in:
Chris Gunn 2024-10-29 16:02:15 -07:00 коммит произвёл GitHub
Родитель 04fe625df7
Коммит 9255c2313c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -1444,16 +1444,18 @@ func (b *LiveOSIsoBuilder) createWriteableImageFromSquashfs(buildDir, rawImageFi
fileSystemConfigs := []imagecustomizerapi.FileSystem{
{
DeviceId: "esp",
Type: imagecustomizerapi.FileSystemTypeFat32,
DeviceId: "esp",
PartitionId: "esp",
Type: imagecustomizerapi.FileSystemTypeFat32,
MountPoint: &imagecustomizerapi.MountPoint{
Path: "/boot/efi",
Options: "umask=0077",
},
},
{
DeviceId: "rootfs",
Type: imagecustomizerapi.FileSystemTypeExt4,
DeviceId: "rootfs",
PartitionId: "rootfs",
Type: imagecustomizerapi.FileSystemTypeExt4,
MountPoint: &imagecustomizerapi.MountPoint{
Path: "/",
},