diff options
Diffstat (limited to 'umount.c')
-rw-r--r-- | umount.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -26,7 +26,6 @@ | |||
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <sys/mount.h> | 27 | #include <sys/mount.h> |
28 | #include <mntent.h> | 28 | #include <mntent.h> |
29 | #include <fstab.h> | ||
30 | #include <errno.h> | 29 | #include <errno.h> |
31 | 30 | ||
32 | 31 | ||
@@ -110,11 +109,10 @@ char *mtab_getinfo(const char *match, const char which) | |||
110 | } else { | 109 | } else { |
111 | #if !defined BB_MTAB | 110 | #if !defined BB_MTAB |
112 | if (strcmp(cur->device, "/dev/root") == 0) { | 111 | if (strcmp(cur->device, "/dev/root") == 0) { |
113 | struct fstab *fstabItem; | 112 | /* Adjusts device to be the real root device, |
114 | 113 | * or leaves device alone if it can't find it */ | |
115 | fstabItem = getfsfile("/"); | 114 | find_real_root_device_name( cur->device); |
116 | if (fstabItem != NULL) | 115 | return ( cur->device); |
117 | return fstabItem->fs_spec; | ||
118 | } | 116 | } |
119 | #endif | 117 | #endif |
120 | return cur->device; | 118 | return cur->device; |