~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to data/update-motd-hwe-eol

  • Committer: Balint Reczey
  • Date: 2019-12-05 14:01:49 UTC
  • Revision ID: balint.reczey@canonical.com-20191205140149-iuzpnwkns6yjg8wm
data/update-motd-hwe-eol: Shortcut script when running in a container

There is no point in checking the HWE stack in a container since upgrading
it would not affect the host system.

LP: #1855290

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
if [ "$1" = "--force" ]; then
8
8
    NEED_EOL_CHECK=yes
9
9
else
 
10
    if type systemd-detect-virt > /dev/null 2>&1  && systemd-detect-virt -q -c; then
 
11
        exit
 
12
    fi
10
13
    NEED_EOL_CHECK=no
11
14
fi
12
15