[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rescue.sh.use-flavour.diff



#include <hallo.h>
Adam Di Carlo wrote on Sat Aug 18, 2001 um 12:40:24PM:

> This seems rather dangerous.  Have you tested that this has no affects
> when using the compact or idepci flavors?

Your feeling was not wrong, the patch will break. Please revert the last
patch if applied, and take the one in attachment (tested this time).
BTW, there is also another patch, displaying the warning about minimal
partition size for ReiserFS.

Gruss/Regards,
Eduard.
-- 
Wenn einer träumt, bleibt es ein Traum.
Wenn viele träumen,
beginnt der Traum, Wirklichkeit zu werden.
--- boot-floppies-cvs.orig/rescue.sh
+++ boot-floppies-cvs/rescue.sh
@@ -11,9 +11,17 @@
 # Write (or don't write) the install.sh script
 #
 write_installsh () {
+   local kverfl
+
     if [ "x$noinstall" = x ]; then
+        if [ -z "$subarch" ]; then
+            export kverfl=$kver
+         else
+            export kverfl=$kver-$subarch
+        fi
+
 	m4 -D__ERROR_MESS__=$scripts/messages/$language/install.sh.txt \
-	   -D__version__=$kver -D__arch__=$arch \
+	   -D__version__=$kverfl -D__arch__=$arch \
 	   <$scripts/install.sh >$mnt/install.sh
 	chmod 755 $mnt/install.sh
     fi
--- boot-floppies-cvs.orig/utilities/dbootstrap/partition_config.c
+++ boot-floppies-cvs/utilities/dbootstrap/partition_config.c
@@ -193,6 +210,14 @@
 _("Note on Dvhtool installation"));
 #endif
 
+  if(is_rfs && ! bootargs.isquiet)
+     wideMessageBox(_(
+"NOTE: if you plan to create an Reiser filesystem, don't forget the\n"
+"additional space that its Journal will eat up.\n\n"
+"Usually you can calculate with: (partition size) = \n"
+"(expected free space on ReiserFS) + (32MB for the Journal)\n"),
+_("Note about additional space for Journal"));
+
   if ( NAME_ISEXE( "/sbin/cfdisk", &statbuf )
 #if #cpu(powerpc)
        && ( strcmp(Arch2, "PowerMac") != 0 )

Attachment: pgpn7gVb7ajna.pgp
Description: PGP signature


Reply to: