diff options
author | Marcelo Leitner <mrl@mandriva.com> | 2007-11-06 16:59:12 +0000 |
---|---|---|
committer | Marcelo Leitner <mrl@mandriva.com> | 2007-11-06 16:59:12 +0000 |
commit | 8b373690e7b1d9d6007f8ef62f09f0f309ede0c4 (patch) | |
tree | 9fb4d7082313e4a2cfb88e955828b997adc6159a /lib/Iurt | |
parent | deb2e54dfcd4819571645a9385d5088e06d5de89 (diff) | |
download | iurt-8b373690e7b1d9d6007f8ef62f09f0f309ede0c4.tar iurt-8b373690e7b1d9d6007f8ef62f09f0f309ede0c4.tar.gz iurt-8b373690e7b1d9d6007f8ef62f09f0f309ede0c4.tar.bz2 iurt-8b373690e7b1d9d6007f8ef62f09f0f309ede0c4.tar.xz iurt-8b373690e7b1d9d6007f8ef62f09f0f309ede0c4.zip |
- Force mounting iurt_medias as read-only
Diffstat (limited to 'lib/Iurt')
-rw-r--r-- | lib/Iurt/Chroot.pm | 2 |
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; } |