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

Bug#385888: marked as done (autopartkit: should use update-dev)



Your message dated Wed, 23 Apr 2008 01:30:07 +0100
with message-id <200804230030.m3N0U768020655@kmos.homeip.net>
and subject line autopartkit has been removed from Debian, closing #385888
has caused the Debian Bug report #385888,
regarding autopartkit: should use update-dev
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
385888: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=385888
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: autopartkit
Version: 1.19
Severity: wishlist

Instead of the sleep() hack, autopartkit should come into line with the
rest of d-i and use update-dev from di-utils to poke the kernel and udev
into creating devices. The attached patch should do the job, but I
haven't committed it because I can't test it myself. Could somebody
please try this out and commit it if it works?

Changelog entry:

  * Use update-dev rather than the sleep() hack to get the kernel and
    udev to create device nodes.

Thanks,

-- 
Colin Watson                                       [cjwatson@debian.org]
Index: debian/control
===================================================================
--- debian/control	(revision 40452)
+++ debian/control	(working copy)
@@ -9,7 +9,7 @@
 Package: autopartkit
 XC-Package-Type: udeb
 Architecture: any
-Depends: ${shlibs:Depends}, e2fsprogs-udeb, cdebconf-udeb (>= 0.43), disk-detect, md-modules, lvm10-udeb | lvm2-udeb, partconf-mkfstab, di-utils (>= 1.15)
+Depends: ${shlibs:Depends}, e2fsprogs-udeb, cdebconf-udeb (>= 0.43), disk-detect, md-modules, lvm10-udeb | lvm2-udeb, partconf-mkfstab, di-utils (>= 1.19)
 Provides: mounted-partitions, created-fstab, made-filesystems, partitioned-harddrives
 XB-Installer-Menu-Item: 50
 Description: Automatically Partition Hard Drives (unsafe)
Index: autopartkit.c
===================================================================
--- autopartkit.c	(revision 40452)
+++ autopartkit.c	(working copy)
@@ -106,9 +106,6 @@
 /* Ignore devfs devices, used in choose_dev */
 #define IGNORE_DEVFS_DEVICES 1
 
-/* sleep period to give udev time to create the devices */
-#define UDEV_SLEEP_HACK 3
-
 #if 1
 #define log_line() \
   autopartkit_log(2, "  Error bounding: %s %d\n",__FILE__,__LINE__)
@@ -1155,7 +1152,7 @@
                  * sure the device file is available when we need it.
                 */
                 ped_disk_commit(disk_maybe);
-                sleep(UDEV_SLEEP_HACK); /* Give the kernel a moment to create the device */
+                system("update-dev"); /* persuade the kernel to create the device */
 
                 makefs(mountmap[partcount].devpath, req_tmp->fstype);
 	    }
@@ -1186,7 +1183,7 @@
 		   make sure the device file is available when we need
 		   it. */
 		ped_disk_commit(disk_maybe);
-		sleep(UDEV_SLEEP_HACK); /* Give the kernel a moment to create the device */
+		system("update-dev"); /* persuade the kernel to create the device */
 
 		lvm_pv_stack_push(lvm_pv_stack, req_tmp->mountpoint, devpath);
 	    }
@@ -1265,7 +1262,7 @@
         free(vgname);
         free(devpath);
     }
-    sleep(UDEV_SLEEP_HACK); /* Give the kernel a moment to create the devices */
+    system("update-dev"); /* persuade the kernel to create the devices */
 
     /* Distribute logical volumes (andread@linpro.no) */
     lvm_vg_stack = lvm_vg_stack_new();
@@ -1363,7 +1360,7 @@
 		autopartkit_log(1, "  LVM lv created ok, devpath=%s\n",
 				devpath);
 		autopartkit_log(1, "  LVM creating fs: %s\n", fstype);
-		sleep(UDEV_SLEEP_HACK); /* Give the kernel a moment to create the device */
+		system("update-dev"); /* persuade the kernel to create the device */
 		if (0 == makefs(devpath, fstype))
 		  { /* Replace devpath placeholder with real path */
 		    char buf[1024];

--- End Message ---
--- Begin Message ---
Version: 1.30+rm

The autopartkit package has been removed from Debian testing, unstable and
experimental, so I am now closing the bugs that were still opened
against it.

For more information about this package's removal, read
http://bugs.debian.org/473148 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

--
Marco Rodrigues
http://Marco.Tondela.org


--- End Message ---

Reply to: