I have an AWS ec2 image, os is ubuntu.
During the instance creation, I have this in the cloud-init.log file, eatmydata takes about 10 minutes:
2022-09-21 11:35:05,393 - util.py[DEBUG]: apt-update [eatmydata apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet update] took 34.331 seconds
2022-09-21 11:35:05,394 - subp.py[DEBUG]: Running command ['eatmydata', 'apt-get', '--option=Dpkg::Options::=--force-confold', '--option=Dpkg::options::=--force-unsafe-io', '--assume-yes', '--quiet', 'dist-upgrade'] with allowed return codes [0] (shell=False, capture=False)
2022-09-21 11:45:20,967 - util.py[DEBUG]: apt-upgrade [eatmydata apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet dist-upgrade] took 615.573 seconds
How can I reduce this long time?
Thanks