]> git.sur5r.net Git - bacula/rescue/commitdiff
Some updates
authorKern Sibbald <kern@sibbald.com>
Thu, 22 Dec 2005 00:58:44 +0000 (00:58 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 22 Dec 2005 00:58:44 +0000 (00:58 +0000)
rescue/linux/cdrom/makebinaries
rescue/linux/cdrom/makeinitrd
rescue/linux/cdrom/makekernel
rescue/linux/cdrom/rootsbin.list
rescue/version.h

index dbaaf067d11a0a921c604bc93ef82a098fdc2231..a114dd3a97494f5b2620b9b739c777a712783e8a 100755 (executable)
@@ -89,6 +89,9 @@ done
 cp -fp /lib/ld-linux.so.* roottree/lib/
 strip `find roottree/lib/ -maxdepth 1 -type f` 2>/dev/null
 
 cp -fp /lib/ld-linux.so.* roottree/lib/
 strip `find roottree/lib/ -maxdepth 1 -type f` 2>/dev/null
 
+# Grub crap
+mkdir -p roottree/usr/share/grub
+cp -fpr /usr/share/grub/* roottree/usr/share/grub
 
 #
 # Get a bunch of stuff from /etc
 
 #
 # Get a bunch of stuff from /etc
index 2474cf9e0e55f573d5979ab150f7672c7dee2184..e543af8e08e29a24962c3f87b77504e6bc595fd8 100755 (executable)
@@ -2,18 +2,9 @@
 
 TOPDIR=`pwd`
 
 
 TOPDIR=`pwd`
 
-mkdir -p /mnt/loop1 /mnt/loop2
-
-#
-# we need to set aside a few loop devices. I chose (in reverse order of their appearance)
-# -- loop1 for the boot image
-# -- loop2 for the RAM disk image
-# since the loop1 choice is reflected in the lilo.loopfix file, 
-# you should not change that (or you need to change the file).
-# I had used loop0 first, but I found that this is used by the Samba daemon.
-# Also, I assume that the mount points are /mnt/loop{1,2}.
-# In principle we could do with one, but it comes in handy to be able to
-# leave one mounted, so I took two different ones. 
+LOOP2=/tmp/bacula_rescue_loop2
+rm -rf $LOOP2
+mkdir -p $LOOP2
 
 # Assume that everything to be loaded into memory with the
 # RAM disk image (initrd) is is in the roottree directory. 
 
 # Assume that everything to be loaded into memory with the
 # RAM disk image (initrd) is is in the roottree directory. 
@@ -32,7 +23,8 @@ rm -f root
 
 dd if=/dev/zero of=$TOPDIR/root bs=1k count=$ISIZE
 
 
 dd if=/dev/zero of=$TOPDIR/root bs=1k count=$ISIZE
 
-umount /mnt/loop2  2>/dev/null >/dev/null
+# cleanup any prior left over stuff
+umount $LOOP2  2>/dev/null >/dev/null
 losetup -d /dev/loop2 2>/dev/null >/dev/null
 
 # associate it with /dev/loop2
 losetup -d /dev/loop2 2>/dev/null >/dev/null
 
 # associate it with /dev/loop2
@@ -46,22 +38,26 @@ if [ $? != 0 ] ; then
 fi
 
 # we mount it...
 fi
 
 # we mount it...
-mount /dev/loop2 /mnt/loop2 
-
+mount /dev/loop2 $LOOP2
 # ... and delete the lost+found directory 
 # ... and delete the lost+found directory 
-rm -rf /mnt/loop2/lost+found 
+rm -rf $LOOP2/lost+found 
 
 # then we copy the contents of our roottree to this filesystem
 
 # then we copy the contents of our roottree to this filesystem
-cp -dpR roottree/* /mnt/loop2/
-if [ $? != 0 ] ; then
-  echo "RAM disk build failed."
-  exit 1
-fi
+cp -dpR roottree/* $LOOP2/
+cprtn=$?
 
 # and unmount and divorce /dev/loop2
 
 # and unmount and divorce /dev/loop2
-umount /mnt/loop2
+umount $LOOP2
 losetup -d /dev/loop2 
 losetup -d /dev/loop2 
+rm -rf $LOOP2
+
+# If above copy failed, bail out
+if [ $cprtn != 0 ] ; then
+  echo "RAM disk build failed."
+  exit 1
+fi
 
 
+# This is a newer way of creating a ramfs, which we don't use
 # (cd roottree; find . | cpio --quiet -c -o) >root
 
 echo "Building initial RAM disk done"
 # (cd roottree; find . | cpio --quiet -c -o) >root
 
 echo "Building initial RAM disk done"
index 3bf22248ebb18ae200f41e0e8fe636ba43290cf2..eb8d76b7eacb360a45b3075d4082ca134914740b 100755 (executable)
@@ -5,7 +5,8 @@
 #
 
 TOPDIR=`pwd`
 #
 
 TOPDIR=`pwd`
-KERNEL=`uname -r` 
+KERNEL="2.6.14-1.1653_FC4"
+#KERNEL=`uname -r` 
 
 rm -rf roottree/dev
 tar xfz dev.tar.gz -C roottree
 
 rm -rf roottree/dev
 tar xfz dev.tar.gz -C roottree
index 2f55e398992a60f80e25d2b0132c68e92ed6f39a..93df9fcac16c4b4d0a6590835a76945e53334ea7 100644 (file)
@@ -53,6 +53,10 @@ roottree/sbin/gdb
 roottree/sbin/getkey
 roottree/sbin/grep
 roottree/sbin/grub
 roottree/sbin/getkey
 roottree/sbin/grep
 roottree/sbin/grub
+roottree/sbin/gubby
+roottree/sbin/grub-install
+roottree/sbin/grub-md5-crypt
+roottree/sbin/grub-grub-terminfo
 roottree/sbin/gunzip
 roottree/sbin/gzip
 roottree/sbin/halt
 roottree/sbin/gunzip
 roottree/sbin/gzip
 roottree/sbin/halt
index 13000b066a5c4617e42618610ae77a70a0fbaebd..64e52431347d1ae9fcf01d1a9b00a61525007f32 100644 (file)
@@ -1,5 +1,5 @@
 /* */
 #undef  VERSION
 /* */
 #undef  VERSION
-#define VERSION "1.8.1"
-#define BDATE   "28 September 2005"
-#define LSMDATE "28Sep05"
+#define VERSION "1.8.2"
+#define BDATE   "21 December 2005"
+#define LSMDATE "21Dec05"