Re: [PATCH] Prepare dev nodes for block devices too (#515437)

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

 



Ack.

On 11/10/2009 10:49 AM, Martin Sivak wrote:
---
  loader2/getparts.c |    9 ++-------
  1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/loader2/getparts.c b/loader2/getparts.c
index dde72c5..d58ff93 100644
--- a/loader2/getparts.c
+++ b/loader2/getparts.c
@@ -212,13 +212,8 @@ int createPartitionNodes() {
  		    if (!strcmp(b, "1"))
  			break;
  		} else if (toknum == 3) {
-		    /* this should be the partition name */
-		    /* now we need to see if this is the block device or */
-		    /* actually a partition name                         */
-		    if (!isPartitionName(b))
-			break;
-
-		    /* we found a partition! */
+		    /* this is block device or partition name */
+		    /* lets create devnode! */
  		    pptr = (char *) malloc(strlen(b) + 7);
  		    sprintf(pptr, "/dev/%s", b);
  		    mknod(pptr, 0600 | S_IFBLK, makedev(major, minor));

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[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