summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/drakx-in-chroot3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot
index 8c17cb629..7264ed30a 100755
--- a/tools/drakx-in-chroot
+++ b/tools/drakx-in-chroot
@@ -82,6 +82,7 @@ sys("$sudo mount -o bind $repository_uri $SLASH_LOCATION$MEDIA_LOCATION_ROOTED")
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/usb");
sys("$sudo mount -t tmpfs none $SLASH_LOCATION/run");
if (-d "/run/udev") {
@@ -198,7 +199,7 @@ sub umount_all() {
my $dir = "$SLASH_LOCATION$_";
rmdir $dir;
if (-d $dir) {
- if (m!/proc/bus/usb! || begins_with($_, $prefix_ROOTED)) {
+ if (m!/sys/kernel/debug/usb! || begins_with($_, $prefix_ROOTED)) {
system_verbose "$sudo umount $dir 2>/dev/null";
next;
}