[Fai-commit] r5702 - in trunk: debian lib
Thomas Lange
lange at alioth.debian.org
Wed Jan 27 08:34:29 UTC 2010
Author: lange
Date: 2010-01-27 08:34:29 +0000 (Wed, 27 Jan 2010)
New Revision: 5702
Modified:
trunk/debian/changelog
trunk/lib/subroutines
Log:
subroutines: make installation faster by putting /var/lib/dpkg into a
ramdisk
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2010-01-27 00:52:16 UTC (rev 5701)
+++ trunk/debian/changelog 2010-01-27 08:34:29 UTC (rev 5702)
@@ -10,6 +10,8 @@
* lib/updatebase, fai-debconf: exit if mktemp fails, for e.g. when
TMPDIR is set to nonexisting directory (Thanks to Michael Prokop for
the hint)
+ * subroutines: make installation faster by putting /var/lib/dpkg into a
+ ramdisk
[ Michael Tautschnig ]
* setup-storage: Bumped version number to 1.2
@@ -28,7 +30,7 @@
* setup-storage/Commands.pm: Add -q to createopts when making reiser file
systems (thanks Mathieu Alorent and Thomas Neumann).
- -- Thomas Lange <lange at debian.org> Mon, 18 Jan 2010 11:43:53 +0100
+ -- Thomas Lange <lange at debian.org> Wed, 27 Jan 2010 09:33:57 +0100
fai (3.3.2) unstable; urgency=low
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2010-01-27 00:52:16 UTC (rev 5701)
+++ trunk/lib/subroutines 2010-01-27 08:34:29 UTC (rev 5702)
@@ -779,6 +779,8 @@
[ -f $LOGDIR/fstab ] && cp -p $LOGDIR/fstab $fs
# copy crypttab, if setup-storage created one
[ -f $LOGDIR/crypttab ] && cp -p $LOGDIR/crypttab $FAI_ROOT/etc/crypttab
+ # make /var/lib/dpkg a ramdisk
+ mkramdisk $target/var/lib/dpkg
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### BEGIN SUBROUTINE INFO
@@ -895,6 +897,8 @@
# umount swap space
swapoff -a
fi
+
+ mkramdisk -u $target/var/lib/dpkg # umount ramdisk
# undo fake of all programs made by fai
fai-divert -R
rm -f $FAI_ROOT/etc/apt/apt.conf.d/{10,90}fai
More information about the Fai-commit
mailing list