From 5644bb5a8d4ecc3ce62e67b0e8703f5abb38a6b0 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 26 Mar 2015 15:31:05 -0700 Subject: [PATCH] calamari_setup: mounting iso on older distros requires -o loop Ubuntu's mount/kernel support "mount " directly; apparently Centos 6 (and presumably RHEL6) require specifying at least '-o loop' (a /dev/loopN will be dynamically allocated and removed on unmount). Signed-off-by: Dan Mick --- tasks/calamari_setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/calamari_setup.py b/tasks/calamari_setup.py index 5bce5648e54c7..3ac1a5a5bd7c9 100644 --- a/tasks/calamari_setup.py +++ b/tasks/calamari_setup.py @@ -294,7 +294,8 @@ def calamari_install(config, cal_svr): elif icetype == 'iso': mountpoint = '/mnt/' # XXX create? ret = cal_svr.run( - args=['sudo', 'mount', '-r', remote_iceball_file, mountpoint] + args=['sudo', 'mount', '-o', 'loop', '-r', + remote_iceball_file, mountpoint] ) # install ice_setup package -- 2.39.5