Closed coryschwartz closed 3 years ago
Regarding the apt-get update thing, I just noticed you have another issue with the same problem.
https://github.com/digitalocean/marketplace-partners/issues/133
@coryschwartz thanks for the PR. Someone from the team will review it shortly.
it can be merged now
This solves two issues
apt-get upgrade
does not reliably upgrade the system. I'm not really confident the incantation I have in this PR covers all cases, but it does cover what I'm trying to do right now. Currently, if you attempt to upgrade digitalocean's Ubuntu 20.04 image using simplyapt-get upgrade
, apt will prompt the user for a decision about what to do about openssh configuration.--force-yes
,-y
and other options are not sufficient to suppress it, so I had to pass an option that I'm going to keep the old configThe
dd
command is too slow, but it can be sped up substantially if you specify a block size. 4096 is a common choice since it is a typical block size.I also erased lines that truncated lastlog and wtmp since it looked like that was already being truncated earlier in the script.