From 1349699ee18b298905ba90f408680c5349cf54c7 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Sat, 1 Sep 2012 20:28:29 +0000 Subject: more usbfs removal fixes --- tools/drakx-in-chroot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') 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; } -- cgit v1.2.1