Skip to content

Image is being modified in import-snapshot #9644

@landgraf

Description

@landgraf

Describe the bug

Even if this process is used the image is modified which causes boot/mount issues afterwards.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

/etc/fstab remains unmodified:

LABEL=visopersist /data   ext4    defaults        0       0
LABEL=visodata    /viso   ext4    defaults        0       0

Current Behavior

sh-5.2# cat /etc/fstab 
LABEL=visopersist /data   ext4    defaults        0       0
LABEL=visodata    /viso   ext4    defaults        0       0
# This was generated by AWS
# and broke the boot because sda is not available (only /dev/nvme0n1p1 is)
/dev/sda1       /boot   vfat    defaults        0       0
/dev/sda4       /data   ext4    defaults        0       0
/dev/sda5       /viso   ext4    defaults        0       0

Reproduction Steps

The image has been imported:

  aws ec2 import-snapshot   --region eu-central-1   --disk-container 'file://image-import.json'
 aws ec2 register-image --name="VisoOS-testAMI" --cli-input-json="file://register-ami.json"

with:

aws-cli/1.41.9 Python/3.13.5 Linux/6.15.3-arch1-1 botocore/1.39.9

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/1.42.2 Python/3.13.5 Linux/6.15.3-arch1-1 botocore/1.40.2

Environment details (OS name and version, etc.)

both pip and system (aws-cli/1.41.9 Python/3.13.5 Linux/6.15.3-arch1-1 botocore/1.39.9) produce same results

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.ec2p3This is a minor priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions