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
commit1349699ee18b298905ba90f408680c5349cf54c7 (patch)
tree646230e546cad5e9104be5082620bd01ee52cc9c /tools
parent1f0d2fc2c5f256d9fe2c1bbba07157abed817305 (diff)
downloaddrakx-backup-do-not-use-1349699ee18b298905ba90f408680c5349cf54c7.tar
drakx-backup-do-not-use-1349699ee18b298905ba90f408680c5349cf54c7.tar.gz
drakx-backup-do-not-use-1349699ee18b298905ba90f408680c5349cf54c7.tar.bz2
drakx-backup-do-not-use-1349699ee18b298905ba90f408680c5349cf54c7.tar.xz
drakx-backup-do-not-use-1349699ee18b298905ba90f408680c5349cf54c7.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;
}