X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=discover%2Fdevice-handler.c;h=eaa85de166ce4228b707046ce3e344ec62c1f17d;hb=d8d61e648ebf6a3336820db94244c4251361cf2f;hp=b083af4d0c6cdc0d406e9f609bcd7b387d4f6cbe;hpb=95a566908a5e02c51bd2af6b468df3fb9ad1bf75;p=petitboot diff --git a/discover/device-handler.c b/discover/device-handler.c index b083af4..eaa85de 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -250,7 +250,7 @@ const char *discover_device_get_param(struct discover_device *device, list_for_each_entry(&device->params, param, list) { if (!strcmp(param->name, name)) - return param->name; + return param->value; } return NULL; } @@ -836,17 +836,6 @@ static int mount_device(struct discover_device *dev) return 0; } - /* Retry mount without ro option. */ - rc = process_run_simple(dev, pb_system_apps.mount, - dev->device_path, dev->mount_path, NULL); - - if (!rc) { - dev->mounted = true; - dev->mounted_rw = true; - dev->unmount = true; - return 0; - } - pb_rmdir_recursive(mount_base(), dev->mount_path); err_free: talloc_free(dev->mount_path);