images: ubuntu: Remove APT ESM hook
This was recently introduced with `ubuntu-advantage-tools` and it tries to poke at some system services introducing annoying delay and messages. Even if the services are present (on Ubuntu host) and systemd is accessible (rootful container) - that wouldn't be appropriate still. https://github.com/containers/toolbox/pull/1291 Signed-off-by: Ievgen Popovych <jmennius@gmail.com>
This commit is contained in:
parent
947bb612e1
commit
10b39a6a12
5 changed files with 15 additions and 0 deletions
|
@ -35,3 +35,6 @@ RUN sed -i '/^auth.*pam_unix.so/s/nullok_secure/try_first_pass nullok/' /etc/pam
|
||||||
|
|
||||||
# Fix empty bind-mount to clear selinuxfs (see #337)
|
# Fix empty bind-mount to clear selinuxfs (see #337)
|
||||||
RUN mkdir /usr/share/empty
|
RUN mkdir /usr/share/empty
|
||||||
|
|
||||||
|
# Disable APT ESM hook which tries to enable some systemd services on each apt invocation
|
||||||
|
RUN rm /etc/apt/apt.conf.d/20apt-esm-hook.conf
|
||||||
|
|
|
@ -35,3 +35,6 @@ RUN sed -i '/^auth.*pam_unix.so/s/nullok_secure/try_first_pass nullok/' /etc/pam
|
||||||
|
|
||||||
# Fix empty bind-mount to clear selinuxfs (see #337)
|
# Fix empty bind-mount to clear selinuxfs (see #337)
|
||||||
RUN mkdir /usr/share/empty
|
RUN mkdir /usr/share/empty
|
||||||
|
|
||||||
|
# Disable APT ESM hook which tries to enable some systemd services on each apt invocation
|
||||||
|
RUN rm /etc/apt/apt.conf.d/20apt-esm-hook.conf
|
||||||
|
|
|
@ -40,3 +40,6 @@ RUN mkdir /usr/share/empty
|
||||||
|
|
||||||
# Add flatpak-spawn to /usr/bin
|
# Add flatpak-spawn to /usr/bin
|
||||||
RUN ln -s /usr/libexec/flatpak-xdg-utils/flatpak-spawn /usr/bin/
|
RUN ln -s /usr/libexec/flatpak-xdg-utils/flatpak-spawn /usr/bin/
|
||||||
|
|
||||||
|
# Disable APT ESM hook which tries to enable some systemd services on each apt invocation
|
||||||
|
RUN rm /etc/apt/apt.conf.d/20apt-esm-hook.conf
|
||||||
|
|
|
@ -37,3 +37,6 @@ RUN mkdir /usr/share/empty
|
||||||
|
|
||||||
# Add flatpak-spawn to /usr/bin
|
# Add flatpak-spawn to /usr/bin
|
||||||
RUN ln -s /usr/libexec/flatpak-xdg-utils/flatpak-spawn /usr/bin/
|
RUN ln -s /usr/libexec/flatpak-xdg-utils/flatpak-spawn /usr/bin/
|
||||||
|
|
||||||
|
# Disable APT ESM hook which tries to enable some systemd services on each apt invocation
|
||||||
|
RUN rm /etc/apt/apt.conf.d/20apt-esm-hook.conf
|
||||||
|
|
|
@ -37,3 +37,6 @@ RUN mkdir /usr/share/empty
|
||||||
|
|
||||||
# Add flatpak-spawn to /usr/bin
|
# Add flatpak-spawn to /usr/bin
|
||||||
RUN ln -s /usr/libexec/flatpak-xdg-utils/flatpak-spawn /usr/bin/
|
RUN ln -s /usr/libexec/flatpak-xdg-utils/flatpak-spawn /usr/bin/
|
||||||
|
|
||||||
|
# Disable APT ESM hook which tries to enable some systemd services on each apt invocation
|
||||||
|
RUN rm /etc/apt/apt.conf.d/20apt-esm-hook.conf
|
||||||
|
|
Loading…
Reference in a new issue