This is a bug that affects all supported distributions and thus will be fixed for all of them. Example below is how to reproduce on Focal:
1. # Create AWS EC2 instance AWS_REGION="eu-north-1" AWS_AMI="ami-07ca74b1a97901682" AWS_KEY="your key name" AWS_SECURITY_GROUP="security instance that allows ssh from anywhere" aws ec2 run-instances \ --region ${AWS_REGION} \ --image-id ${AWS_AMI} \ --count 1 \ --instance-type t3.micro \ --key-name ${AWS_KEY} \ --metadata-options "HttpTokens=required" \ --security-group-ids ${AWS_SECURITY_GROUP} \ --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=focal-test-hibinit}]' \ --block-device-mappings '[{"DeviceName":"/dev/sda1","Ebs":{"Encrypted":true,"DeleteOnTermination":true,"VolumeSize":8,"VolumeType":"gp2"}}]' \ --hibernation-options 'Configured=true'
2. SSH into instance
3. Remove weird directory if it exists $ sudo rm -rf /'"'/
4. Start hibinit-agent $ sudo systemctl start hibinit-agent
5. check for dir # before fix $ ll / | head -n 3 total 4096080 drwxr-xr-x 3 root root 4096 Jun 20 22:25 "/ drwxr-xr-x 20 root root 4096 Jun 20 22:25 ./ # after fix $ ll / | head -n 3 total 4096076 drwxr-xr-x 19 root root 4096 Jun 20 22:25 ./ drwxr-xr-x 19 root root 4096 Jun 20 22:25 ../
This is a bug that affects all supported distributions and thus will be fixed for all of them. Example below is how to reproduce on Focal:
1. "eu-north- 1" "ami-07ca74b1a9 7901682" GROUP=" security instance that allows ssh from anywhere" required" \ group-ids ${AWS_SECURITY_ GROUP} \ specifications 'ResourceType= instance, Tags=[{ Key=Name, Value=focal- test-hibinit} ]' \ device- mappings '[{"DeviceName" :"/dev/ sda1"," Ebs":{" Encrypted" :true," DeleteOnTermina tion":true, "VolumeSize" :8,"VolumeType" :"gp2"} }]' \ options 'Configured=true'
# Create AWS EC2 instance
AWS_REGION=
AWS_AMI=
AWS_KEY="your key name"
AWS_SECURITY_
aws ec2 run-instances \
--region ${AWS_REGION} \
--image-id ${AWS_AMI} \
--count 1 \
--instance-type t3.micro \
--key-name ${AWS_KEY} \
--metadata-options "HttpTokens=
--security-
--tag-
--block-
--hibernation-
2. SSH into instance
3. Remove weird directory if it exists
$ sudo rm -rf /'"'/
4. Start hibinit-agent
$ sudo systemctl start hibinit-agent
5. check for dir
# before fix
$ ll / | head -n 3
total 4096080
drwxr-xr-x 3 root root 4096 Jun 20 22:25 "/
drwxr-xr-x 20 root root 4096 Jun 20 22:25 ./
# after fix
$ ll / | head -n 3
total 4096076
drwxr-xr-x 19 root root 4096 Jun 20 22:25 ./
drwxr-xr-x 19 root root 4096 Jun 20 22:25 ../