Skip to content

Commit

Permalink
scylla_install_image:remove /var/cache/debconf/config.dat after image…
Browse files Browse the repository at this point in the history
… creation

during our rolling-upgrade process we keep getting the following
failure:
```
Command: 'sudo DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -o Dpkg::Options::="--force-confdef" upgrade -y '
Exit code: 100
Stdout:
linux-aws linux-headers-aws linux-image-aws
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up shim-signed (1.40.9+15.7-0ubuntu1) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_vol0b2a94761ddb1d0c5-part15 does not exist.
dpkg: error processing package shim-signed (--configure):
installed shim-signed package post-installation script subprocess returned error exit status 32
Errors were encountered while processing:
shim-signed
Stderr:
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

Happend for all images

As suggested by @syuu1228, let's remove `config.dat` once we complete
the image creation

Closes: scylladb/scylla-enterprise#2818
  • Loading branch information
yaronkaikov committed Jul 16, 2023
1 parent 2aa400c commit 23eefa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packer/scylla_install_image
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ WantedBy=multi-user.target

os.remove('{}/.ssh/authorized_keys'.format(homedir))
os.remove('/var/lib/scylla-housekeeping/housekeeping.uuid')
os.remove('/var/cache/debconf/config.dat')

with open('/etc/default/grub.d/50-cloudimg-settings.cfg') as f:
grub = f.read()
Expand Down

0 comments on commit 23eefa4

Please sign in to comment.