Skip to content

Commit

Permalink
fix apt-retry spec used by apt running in rootfs
Browse files Browse the repository at this point in the history
This patch fixes a bug introduced in d349b7 when moving
the apt options from the apt cli to a config file:
The configuration to let apt retry failed downloads belongs to the
'Acquire' group but not to the 'APT' group of apt.conf.
Previously this had been placed in the invalid group and hence did
not have any effect.

According to the manpage of apt.conf, the new location is at least
valid from debian stretch on and from ubuntu bionic on. By that,
all distros supported by ISAR are covered. The same configuration
entry can also be seen in the debrebuild script in /usr/bin.

Signed-off-by: Felix Moessbauer <[email protected]>
  • Loading branch information
fmoessbauer authored and amikan committed Nov 23, 2022
1 parent 49854b6 commit 3849087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta/classes/rootfs.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ rootfs_configure_apt() {

mkdir -p '${ROOTFSDIR}/etc/apt/apt.conf.d'
{
echo 'APT::Acquire::Retries "3";'
echo 'Acquire::Retries "3";'
echo 'APT::Install-Recommends "0";'
echo 'APT::Install-Suggests "0";'
} > '${ROOTFSDIR}/etc/apt/apt.conf.d/50isar'
Expand Down

0 comments on commit 3849087

Please sign in to comment.