summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-28 19:22:15 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-28 19:22:15 +0000
commit192955f1c4a6ec61cb2038158bee5b7eca7250a9 (patch)
treef641a738bdedfff7c9ed5391f4fd48b39d019fe3
parent45672446c498114104ba3c9199ba457640285b7e (diff)
downloaddrakx-backup-do-not-use-192955f1c4a6ec61cb2038158bee5b7eca7250a9.tar
drakx-backup-do-not-use-192955f1c4a6ec61cb2038158bee5b7eca7250a9.tar.gz
drakx-backup-do-not-use-192955f1c4a6ec61cb2038158bee5b7eca7250a9.tar.bz2
drakx-backup-do-not-use-192955f1c4a6ec61cb2038158bee5b7eca7250a9.tar.xz
drakx-backup-do-not-use-192955f1c4a6ec61cb2038158bee5b7eca7250a9.zip
export blkid cache (small speedup)
-rw-r--r--perl-install/install/NEWS2
-rwxr-xr-xtools/drakx-in-chroot5
2 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 70261e31a..874d8803c 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,4 +1,6 @@
- do not bypass blkid cache
+- drakx-in-chroot:
+ o export blkid cache
Version 15.16 - 28 December 2012
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;