[Lunar-commits] CVS: lunar-iso/scripts initrd,1.11,1.12
Auke Kok
sofar at lunar-linux.org
Sat Apr 23 15:54:55 UTC 2005
Update of /var/cvs/lunar/lunar-iso/scripts
In directory espresso.foo-projects.org:/tmp/cvs-serv10573/scripts
Modified Files:
initrd
Log Message:
Some minor tweaks. cosmetic.
Index: initrd
===================================================================
RCS file: /var/cvs/lunar/lunar-iso/scripts/initrd,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- initrd 23 Apr 2005 15:06:27 -0000 1.11
+++ initrd 23 Apr 2005 15:54:53 -0000 1.12
@@ -14,7 +14,7 @@
# template first
cp -a --no-dereference template BUILD
find BUILD -type d -name CVS -exec rm -rf {} \;
-mkdir -p BUILD/{mnt,proc,var/lib/discover}
+mkdir -p BUILD/{mnt,proc,var/lib/discover/crash}
echo "+ copying binaries and required files"
# next up are the required stuff from the BUILD
@@ -67,13 +67,9 @@
for ITEM in $(find BUILD -type f); do
strip $ITEM > /dev/null 2>&1
done
-for ITEM in $(find BUILD -type d -name "CVS"); do
+for ITEM in $(find BUILD -type d -name "CVS" | tac); do
rm -rf $ITEM
done
-echo "+ running ldconfig"
-chroot BUILD /sbin/ldconfig
-rm -f BUILD/etc/mtab
-ln -s /proc/mounts BUILD/etc/mtab
# compile the initrd image
echo "+ installing initrd kernels"
@@ -105,6 +101,11 @@
chown -R root:root BUILD/*
+echo "+ running ldconfig"
+chroot BUILD /sbin/ldconfig
+rm -f BUILD/etc/mtab
+ln -s /proc/mounts BUILD/etc/mtab
+
# calculate the size of the initrd image
SIZE=$(du -kcs BUILD | tail -1 | cut -f1)
echo "+ estimated $SIZE"
More information about the Lunar-commits
mailing list