mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix install.sh with $sh_c to get sudo/su for modprobe
This commit is contained in:
parent
ef5cf6c1ec
commit
0324e567ad
1 changed files with 2 additions and 2 deletions
|
@ -84,13 +84,13 @@ case "$lsb_dist" in
|
|||
}
|
||||
|
||||
# TODO remove this section once device-mapper lands
|
||||
if ! grep -q aufs /proc/filesystems && ! modprobe aufs; then
|
||||
if ! grep -q aufs /proc/filesystems && ! $sh_c 'modprobe aufs'; then
|
||||
kern_extras="linux-image-extra-$(uname -r)"
|
||||
|
||||
apt_get_update
|
||||
( set -x; $sh_c 'sleep 3; apt-get install -y -q '"$kern_extras" ) || true
|
||||
|
||||
if ! grep -q aufs /proc/filesystems && ! modprobe aufs; then
|
||||
if ! grep -q aufs /proc/filesystems && ! $sh_c 'modprobe aufs'; then
|
||||
echo >&2 'Warning: tried to install '"$kern_extras"' (for AUFS)'
|
||||
echo >&2 ' but we still have no AUFS. Docker may not work. Proceeding anyways!'
|
||||
( set -x; sleep 10 )
|
||||
|
|
Loading…
Reference in a new issue