diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-12-12 12:18:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-12-12 12:18:23 +0000 |
commit | 4afb7d9bf4e57f95eb547a61cb1f000d0de8bcc3 (patch) | |
tree | 0b47e3fdb5b675b90987f555fc15dd4b5509277b /tools | |
parent | f6b812a0da473aa45fa4624cee0fd940b6154771 (diff) | |
download | drakx-backup-do-not-use-4afb7d9bf4e57f95eb547a61cb1f000d0de8bcc3.tar drakx-backup-do-not-use-4afb7d9bf4e57f95eb547a61cb1f000d0de8bcc3.tar.gz drakx-backup-do-not-use-4afb7d9bf4e57f95eb547a61cb1f000d0de8bcc3.tar.bz2 drakx-backup-do-not-use-4afb7d9bf4e57f95eb547a61cb1f000d0de8bcc3.tar.xz drakx-backup-do-not-use-4afb7d9bf4e57f95eb547a61cb1f000d0de8bcc3.zip |
- drakx-in-chroot:
o just like stage1, handle <root of distrib> ending with current arch() so
that we can access main32 on x86_64
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/drakx-in-chroot | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot index 4f8b61c4f..a40fce56a 100755 --- a/tools/drakx-in-chroot +++ b/tools/drakx-in-chroot @@ -19,6 +19,7 @@ my $RPMSRATE_ROOTED = '/tmp/rpmsrate'; @ARGV >= 2 or die "usage: drakx-in-chroot <root of distrib> <dir to install to> [options]\n"; (my $repository, my $dir, @ARGV) = @ARGV; +my ($repository_without_arch, $repository_arch) = basename($repository) eq arch() ? (dirname($repository), '/' . arch()) : ($repository, ''); my $STAGE2_LOCATION = $SLASH_LOCATION . $STAGE2_LOCATION_ROOTED; my $sudo; @@ -54,10 +55,10 @@ if ($remote_repository) { } sys("$sudo mount -o bind $dir $SLASH_LOCATION$prefix_ROOTED"); -sys("$sudo mount -o bind $repository $SLASH_LOCATION$MEDIA_LOCATION_ROOTED") if !$remote_repository; +sys("$sudo mount -o bind $repository_without_arch $SLASH_LOCATION$MEDIA_LOCATION_ROOTED") if !$remote_repository; sys("$sudo mount -t proc none $SLASH_LOCATION/proc"); sys("$sudo mount -t sysfs none $SLASH_LOCATION/sys"); -symlinkf('media', "$SLASH_LOCATION$IMAGE_LOCATION_ROOTED"); +symlinkf('media' . $repository_arch, "$SLASH_LOCATION$IMAGE_LOCATION_ROOTED"); create_initial_symlinks(); create_initial_devices(); |