From 2e48fdef9e0dba4441ac2d3b188eb327e5419f47 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sun, 6 May 2012 22:13:00 +0000 Subject: drakx-in-chroot: unmount /dev in chroot --- perl-install/install/NEWS | 2 ++ tools/drakx-in-chroot | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index f31a690ea..fd54c2895 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,5 @@ +- drakx-in-chroot: unmount /dev in chroot + Version 14.20 - 6 May 2012 - bind mount /dev inside chroot rather than copy nodes (mga#5730) diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot index 42ebedb71..1ef65b62b 100755 --- a/tools/drakx-in-chroot +++ b/tools/drakx-in-chroot @@ -194,7 +194,7 @@ sub umount_all() { my $err; clean_stage2_updates(); my @procs = ('/proc/bus/usb', '/proc', '/sys', '/run/udev', '/run/initramfs', '/run'); - foreach ((map { "$prefix_ROOTED$_" } @procs, ''), @procs, $STAGE2_LOCATION_ROOTED, $LOOP_MOUNT_POINT, $MEDIA_LOCATION_ROOTED, $IMAGE_LOCATION_ROOTED) { + foreach ((map { "$prefix_ROOTED$_" } @procs, '/dev', ''), @procs, $STAGE2_LOCATION_ROOTED, $LOOP_MOUNT_POINT, $MEDIA_LOCATION_ROOTED, $IMAGE_LOCATION_ROOTED) { my $dir = "$SLASH_LOCATION$_"; rmdir $dir; if (-d $dir) { -- cgit v1.2.1