Skip to content
Snippets Groups Projects
Commit eb8fc8ea authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Check if system is in LXC container for Dell packages.

parent 70f73c2d
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,11 @@ if ( ! dpkg -l | grep dmidecode ); then ...@@ -7,6 +7,11 @@ if ( ! dpkg -l | grep dmidecode ); then
fi fi
if ( dmidecode | grep Dell ); then if ( dmidecode | grep Dell ); then
if ( grep -qa container=lxc /proc/1/environ ); then
echo "The system is running in a LXC container, no Dell package will be installed."
exit 0
fi
echo 'deb http://linux.dell.com/repo/community/ubuntu xenial openmanage' > /etc/apt/sources.list.d/linux.dell.com.sources.list echo 'deb http://linux.dell.com/repo/community/ubuntu xenial openmanage' > /etc/apt/sources.list.d/linux.dell.com.sources.list
gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F
gpg -a --export 1285491434D8786F | sudo apt-key add - gpg -a --export 1285491434D8786F | sudo apt-key add -
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment