[PATCH] create drive (disk) dev nodes under /dev

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

 



Running with iSCSI install patches, in stage2 device nodes are currently
created under /tmp (like /tmp/sda) rather than /dev.

But in the enablefilesystems / turnOnFilesystems, we call scanForRaid and
that ends up deleting all drives /tmp nodes, so when we later try to open
/tmp/sda, the install fails.

This patch more sensibly creates device nodes under /dev like we'd do in
stage1, rather than the default /tmp, and avoids the problem.

diff -uprN -X /home/patman/dontdiff anaconda-10.91.4/partedUtils.py use-dev-anaconda-10.91.4/partedUtils.py
--- anaconda-10.91.4/partedUtils.py	2005-12-11 15:35:33.000000000 -0800
+++ use-dev-anaconda-10.91.4/partedUtils.py	2006-01-25 15:24:05.000000000 -0800
@@ -891,7 +891,7 @@ class DiskSet:
         for drive in self.driveList():
             if drive in DiskSet.skippedDisks and not initAll:
                 continue
-            deviceFile = isys.makeDevInode(drive)
+            deviceFile = isys.makeDevInode(drive, '/dev/' + drive)
             if isys.driveIsRemovable(drive) and not flags.expert:
                 DiskSet.skippedDisks.append(drive)
                 continue


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux