aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Chroot.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 93c63cd..c896097 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -115,7 +115,7 @@ sub clean_chroot {
my $url = $rep;
$url =~ s!^file://!!;
system("$sudo mkdir -p $mount_point");
- if (system("$sudo mount -o bind $url $mount_point")) {
+ if (system("$sudo mount -o bind,ro $url $mount_point")) {
plog ('ERROR', "Failed to mount $url on $mount_point");
return;
}