From 83f911b151adc8f31db9a4fa51f31174452f8e78 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 21 Oct 2014 22:36:33 +0200 Subject: mount /dev -o ro (prevent rm -fr going havroc on some error pathes) --- perl-install/install/NEWS | 3 +++ tools/drakx-in-chroot | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index e8c65d613..2eeda9885 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,6 @@ +- drakx-in-chroot: + o mount /dev -o ro + Version 16.43 - 20 October 2014 - drakx-in-chroot: 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"); -- cgit v1.2.1