diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-12-28 19:22:15 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-12-28 19:22:15 +0000 |
commit | 3b46dd8991124869f09a36a6fab08179ea9111e8 (patch) | |
tree | f641a738bdedfff7c9ed5391f4fd48b39d019fe3 /tools | |
parent | fe28c4ede7e3dc145ffd88c70d75dbcce4093dda (diff) | |
download | drakx-3b46dd8991124869f09a36a6fab08179ea9111e8.tar drakx-3b46dd8991124869f09a36a6fab08179ea9111e8.tar.gz drakx-3b46dd8991124869f09a36a6fab08179ea9111e8.tar.bz2 drakx-3b46dd8991124869f09a36a6fab08179ea9111e8.tar.xz drakx-3b46dd8991124869f09a36a6fab08179ea9111e8.zip |
export blkid cache (small speedup)
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 a75699341..6b42f7217 100755 --- a/tools/drakx-in-chroot +++ b/tools/drakx-in-chroot @@ -90,7 +90,8 @@ sys("$sudo mount -t tmpfs none $SLASH_LOCATION/run"); # - Ensure we mount the udev run dir for various extra metadata from udevadm # - If dracut has been used (and thus udev has yummy metadata) make sure # drakx knows about it when running in the chroot -foreach my $dir (qw(initramfs udev)) { +# - Also speedup blkid by using its cache +foreach my $dir (qw(initramfs udev blkid)) { next if !-d "/run/$dir"; mkdir_p("$SLASH_LOCATION/run/$dir"); sys("$sudo mount -o bind /run/$dir $SLASH_LOCATION/run/$dir"); @@ -192,7 +193,7 @@ sub create_initial_devices() { sub umount_all() { my $err; clean_stage2_updates(); - my @procs = ('/proc', '/sys/kernel/debug', '/sys', '/run/udev', '/run/initramfs', '/run'); + my @procs = ('/proc', '/sys/kernel/debug', '/sys', '/run/udev', '/run/blkid', '/run/initramfs', '/run'); foreach ((map { "$prefix_ROOTED$_" } @procs, '/dev', ''), @procs, $STAGE2_LOCATION_ROOTED, $LOOP_MOUNT_POINT, $MEDIA_LOCATION_ROOTED, $IMAGE_LOCATION_ROOTED) { my $dir = "$SLASH_LOCATION$_"; rmdir $dir; |