summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2012-09-01 20:28:29 +0000
committerThomas Backlund <tmb@mageia.org>2012-09-01 20:28:29 +0000
commit5fcbc2c12e61c2b91fef354f03de7994005e87a6 (patch)
tree646230e546cad5e9104be5082620bd01ee52cc9c /tools
parent4fa75e58bdd8f7f528152a341e8fd2214b2c61e7 (diff)
downloaddrakx-5fcbc2c12e61c2b91fef354f03de7994005e87a6.tar
drakx-5fcbc2c12e61c2b91fef354f03de7994005e87a6.tar.gz
drakx-5fcbc2c12e61c2b91fef354f03de7994005e87a6.tar.bz2
drakx-5fcbc2c12e61c2b91fef354f03de7994005e87a6.tar.xz
drakx-5fcbc2c12e61c2b91fef354f03de7994005e87a6.zip
more usbfs removal fixes
Diffstat (limited to 'tools')
-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;
}