Custom Windows Image Curtin Fail

Hi All,

When im deploying my custom Windows image it seems to all go okay, but the deployment gets marked as a “Failed Deployment”. When i look at the logs I see the following : -

Running command ['partprobe', '/dev/sde'] with allowed return codes [0] (capture=False)
        Error: Invalid argument during seek for read on /dev/sde
        TIMED BLOCK_META: 396.337
        finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
        Traceback (most recent call last):
          File "/curtin/curtin/commands/main.py", line 202, in main
            ret = args.func(args)
          File "/curtin/curtin/log.py", line 97, in wrapper
            return log_time("TIMED %s: " % msg, func, *args, **kwargs)
          File "/curtin/curtin/log.py", line 79, in log_time
            return func(*args, **kwargs)
          File "/curtin/curtin/commands/block_meta.py", line 120, in block_meta
            return meta_simple(args)
          File "/curtin/curtin/commands/block_meta.py", line 2321, in meta_simple
            rootdev = write_image_to_disk(dd_images[0], devname)
          File "/curtin/curtin/commands/block_meta.py", line 160, in write_image_to_disk
            util.subp(['partprobe', devnode])
          File "/curtin/curtin/util.py", line 280, in subp
            return _subp(*args, **kwargs)
          File "/curtin/curtin/util.py", line 144, in _subp
            raise ProcessExecutionError(stdout=out, stderr=err,
        curtin.util.ProcessExecutionError: Unexpected error while running command.
        Command: ['partprobe', '/dev/sde']
        Exit code: 1
        Reason: -
        Stdout: ''
        Stderr: ''
        Unexpected error while running command.
        Command: ['partprobe', '/dev/sde']
        Exit code: 1

Windows seems to boot after this error , I have the Curtin hooks in the root of the windows installation.

Please can you help, im thinking maybe I need a custom curtin userdata file but I have no idea where to start.

Thanks

did you follow packer-maas/windows at main · canonical/packer-maas · GitHub ?

No, I used this https://www.cryingcloud.com/blog/2022/10/19/create-azure-stack-hci-images-for-use-with-maas

Could it be that the Curtin hooks are different?

I also see this in the Log in the UI