]> git.ozlabs.org Git - yaboot.git/blobdiff - second/fs_swap.c
fs_swap: Reduce severity of not finding a partition table on boot device.
[yaboot.git] / second / fs_swap.c
index 87da8775f85c8db55e7101261e88a4ac56f713e6..1efb96e1d81278cc58a20e936517d4837b8c316d 100644 (file)
@@ -59,9 +59,10 @@ swap_open(struct boot_file_t* file, struct partition_t* part,
      DEBUG_ENTER;
      DEBUG_OPEN;
 
-     if (file->device_kind != FILE_DEVICE_BLOCK || part == NULL) {
-         DEBUG_LEAVE(FILE_ERR_BADDEV);
-         return FILE_ERR_BADDEV;
+     if (part == NULL) {
+          DEBUG_F("No partions on %s, not checking for swap\n", device_name);
+         DEBUG_LEAVE(FILE_ERR_BAD_FSYS);
+         return FILE_ERR_BAD_FSYS;
      }
 
      /* We assume that device is "short" and is correctly NULL terminsated */