vmware / vmware/photon

race condition in kickstart installation not detecting target disk

Open
#1,310 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
3.2k
Forks
692
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

there seems to be a race condition, where sometimes (often in my case) the photon-os-installer
fails to detect the configured target disk (eg. /dev/sda).

image

issuing

umount /mnt/media
exit

will restart the installation without problems

Reproduction steps

package a kickstarter with

    "disk": "/dev/sda",
    "bootmode": "dualboot",
    "partition_type": "gpt",
    "partitions": [
                        {"mountpoint": "/", "size": 0, "filesystem": "ext4"},
                        {"mountpoint": "/boot", "size": 1024, "filesystem": "ext4"},
                        {"mountpoint": "/root", "size": 1024, "filesystem": "ext4"},
                        {"mountpoint": "/data", "size": 1024, "filesystem": "ext4"},
                        {"size": 1024, "filesystem": "swap"}
                    ],
Expected behavior

the installer should check and wait (timeout) for the availability of the configured installation target disk

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the photon-os-installer kickstart path that detects the configured target disk, using the supplied /dev/sda configuration to reproduce the race. Done means the installer waits with a timeout for the target disk to become available instead of failing and requiring the installation restart workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.