diff options
author | Olivier Blin <blino@mageia.org> | 2011-04-16 14:00:08 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2011-04-16 14:00:08 +0000 |
commit | 23f43fdece496d001554047c22dbd51d45deac22 (patch) | |
tree | 09b2cbd3feaf135ae4abbf37ed316363ffcfa021 /draklive | |
parent | 344dfb77c34a340b568055254b11f6a7da84d6f3 (diff) | |
download | drakiso-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-x | draklive | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 { |