]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Fix numberous problems in Debian's initrd scripts:
authorTheodore Ts'o <tytso@mit.edu>
Tue, 4 May 2004 13:15:34 +0000 (09:15 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 May 2004 13:15:34 +0000 (09:15 -0400)
* In the mkinitrd script, make sure the directories exist before
  trying to copy in the needed shared libraries.  (Closes: #244058, #246480)

* In the mkinitrd script, use LD_ASSUME_KERNEL=2.4 if necessary.
  (Closes: #245931)

* In the mkinitrd script copy in /usr/bin/awk instead of /usr/bin/mawk.
  (Closes: #245670)

* In the initrd script, fail quietly if /mnt/etc/fstab does not exist.
  (Closes: #246917)

debian/changelog
debian/e2fsprogs.initrd
debian/e2fsprogs.mkinitrd

index 1ee30595c6be164acce8df1d1d34b7c5ffeb5717..696843eb8b512ce9108770f27c2105664bb3f1a0 100644 (file)
@@ -1,3 +1,16 @@
+e2fsprogs (1.35-6) unstable; urgency=low
+
+  * In the mkinitrd script, make sure the directories exist before
+    trying to copy in the needed shared libraries.  (Closes: #244058, #246480)
+  * In the mkinitrd script, use LD_ASSUME_KERNEL=2.4 if necessary.  
+    (Closes: #245931)
+  * In the mkinitrd script copy in /usr/bin/awk instead of /usr/bin/mawk.  
+    (Closes: #245670)
+  * In the initrd script, fail quietly if /mnt/etc/fstab does not exist.
+    (Closes: #246917)
+
+ -- Theodore Y. Ts'o <tytso@mit.edu>  Tue,  4 May 2004 03:00:24 -0400
+
 e2fsprogs (1.35-5) unstable; urgency=low
 
   * Add uuid_unparse_upper() and uuid_unparse_lower() functions to the
index 12e27152bdd37f73ef8bd11b9a6de450fcff63eb..cf238009419be2f47bed9e4fa0fbfec44d1d5218 100644 (file)
@@ -10,8 +10,10 @@ if [ $rootdev != 256 ]; then
     mount -nt devfs devfs /devfs > /dev/null 2>&1
     get_device
     mount_device
-    ext3root=`awk '!/^ *#/ { if (($2 == "/") && ($3 == "ext3")) {print $1;}}' < /mnt/etc/fstab`
-    ext2root=`awk '!/^ *#/ { if (($2 == "/") && ($3 == "ext2")) {print $1;}}' < /mnt/etc/fstab`
+    if test -f /mnt/etc/fstab ; then
+        ext3root=`awk '!/^ *#/ { if (($2 == "/") && ($3 == "ext3")) {print $1;}}' < /mnt/etc/fstab`
+        ext2root=`awk '!/^ *#/ { if (($2 == "/") && ($3 == "ext2")) {print $1;}}' < /mnt/etc/fstab`
+    fi
     umount -n /devfs > /dev/null 2>&1
     umount -n /mnt > /dev/null 2>&1
     if test -n "$ext3root" -o -n "$ext2root" ; then
index 6686bf38e5661c47fbdbf7a690e95570266087eb..0013dec7e7367b93f88f487549c0e3f10b93666e 100644 (file)
@@ -2,8 +2,17 @@
 cp /usr/share/e2fsprogs/initrd.ext3-add-journal \
     $INITRDDIR/scripts/ext3-add-journal.sh
 cp /sbin/tune2fs $INITRDDIR/sbin
-cp /usr/bin/mawk $INITRDDIR/bin/awk
-for i in `ldd /sbin/tune2fs /usr/bin/mawk | sort -u | awk '{print $3}'` 
+cp /usr/bin/awk $INITRDDIR/bin/awk
+
+case "$VERSION" in
+    2.4.*)
+       LD_ASSUME_KERNEL=2.4
+       export LD_ASSUME_KERNEL
+       ;;
+esac
+
+for i in `ldd /sbin/tune2fs /usr/bin/awk | sort -u | awk '{print $3}'` 
 do
+       mkdir -p `dirname $INITRDDIR/$i`
        cp $i $INITRDDIR/$i
 done