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

Bug#110717: Partitioning error, repartitioned, dinstall does not notice new partitioning afterward



Hi,

It appears as though this bug is specific to the reiserfs and bf2.4
flavor.  I just tried to reproduce it with a current idepci disk and
could not.  I can reproduce it with current bf2.4 flavor and I
reproduced it with reiserfs back in September.

Is the following ioctl what you had in mind pb?  It doesn't make the
problem go away, unfortunate.  The ioctl always returns -1 for me so
maybe I'm doing something wrong.


-David

Index: partition_config.c
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/utilities/dbootstrap/partition_config.c,v
retrieving revision 1.143
diff -u -r1.143 partition_config.c
--- partition_config.c	2002/01/14 15:54:31	1.143
+++ partition_config.c	2002/02/02 09:18:13
@@ -204,6 +205,7 @@
   char *mounts, *swaps, *tmpbuf, *myfdisk; 
   int root_on_disk=0, status=0, expert=0;
   struct stat statbuf;
+  int fd;
 
   sync();
   mounts = swaps = NULL;
@@ -527,7 +529,20 @@
       first = 0;
     }
   }
+
   INFOMSG("partition program returned %d", status);
+  
+  if ((fd = open(d->name,  O_RDWR)) != -1) {
+
+      if (ioctl(fd, BLKRRPART) == -1 &&
+	      yesNoBox(_("ioctl BLKRRPART failed, something is very wrong, do you want to reboot?"),
+ 		  _("Reboot system?")) == DLG_YES) {
+	  close(fd);
+	  reboot_system();
+      }
+      close(fd);
+  }
+  
   if (root_on_disk && 
       yesNoBox(_("You changed the partition scheme on a disk which is currently mounted.  Often, in order to work with the new partitions, you may need to reboot the system.  If you reboot, you will be able to carry on with installation from where you left off.\n\nReboot now?"),
 	       _("Reboot system?")) == DLG_YES) {



Reply to: