Comment 3 for bug 2023924

Revision history for this message
Mitchell Dzurick (mitchdz) wrote (last edit ):

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 ../