summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-04-16 14:00:08 +0000
committerOlivier Blin <blino@mageia.org>2011-04-16 14:00:08 +0000
commit23f43fdece496d001554047c22dbd51d45deac22 (patch)
tree09b2cbd3feaf135ae4abbf37ed316363ffcfa021 /draklive
parent344dfb77c34a340b568055254b11f6a7da84d6f3 (diff)
downloaddrakiso-23f43fdece496d001554047c22dbd51d45deac22.tar
drakiso-23f43fdece496d001554047c22dbd51d45deac22.tar.gz
drakiso-23f43fdece496d001554047c22dbd51d45deac22.tar.bz2
drakiso-23f43fdece496d001554047c22dbd51d45deac22.tar.xz
drakiso-23f43fdece496d001554047c22dbd51d45deac22.zip
umount /proc and /sys in chroot before cleaning or compressing
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive5
1 files changed, 3 insertions, 2 deletions
diff --git a/draklive b/draklive
index bfa6811..449a6c4 100755
--- a/draklive
+++ b/draklive
@@ -380,8 +380,9 @@ sub write_dist_lists {
sub umount_external_filesystem {
my ($live) = @_;
- my $mnt = $live->get_system_root . "/mnt/";
- eval { fs::mount::umount("$mnt/$_") } foreach all($mnt);
+ eval { fs::mount::umount($live->get_system_root . "/" . $_) } foreach
+ (map { "/mnt/$_" } all($live->get_system_root . "/mnt")),
+ qw(/proc/bus/usb /proc /sys);
}
sub expand_file_list {