summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-10-21 22:36:33 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-10-21 22:36:33 +0200
commit83f911b151adc8f31db9a4fa51f31174452f8e78 (patch)
tree171260a3fd22370dc2d896ffc4d1887625581a97 /tools
parentfe03a12331a16033319d9de1c4ed4b26e11d953a (diff)
downloaddrakx-83f911b151adc8f31db9a4fa51f31174452f8e78.tar
drakx-83f911b151adc8f31db9a4fa51f31174452f8e78.tar.gz
drakx-83f911b151adc8f31db9a4fa51f31174452f8e78.tar.bz2
drakx-83f911b151adc8f31db9a4fa51f31174452f8e78.tar.xz
drakx-83f911b151adc8f31db9a4fa51f31174452f8e78.zip
mount /dev -o ro
(prevent rm -fr going havroc on some error pathes)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/drakx-in-chroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot
index b66df8755..f8a37c755 100755
--- a/tools/drakx-in-chroot
+++ b/tools/drakx-in-chroot
@@ -85,7 +85,7 @@ sys("$sudo mount -o bind $dir $SLASH_LOCATION$prefix_ROOTED");
$repository_uri ||= $repository_without_arch if !$remote_repository;
sys("$sudo mount -o bind $repository_uri $SLASH_LOCATION$MEDIA_LOCATION_ROOTED") if $repository_uri;
-sys("$sudo mount --bind /dev $SLASH_LOCATION/dev");
+sys("$sudo mount --bind -o ro /dev $SLASH_LOCATION/dev");
sys("$sudo mount -t proc none $SLASH_LOCATION/proc");
sys("$sudo mount -t sysfs none $SLASH_LOCATION/sys");
sys("$sudo mount -t debugfs none $SLASH_LOCATION/sys/kernel/debug");