[gnome-disk-utility/udisks2-port] Propose 'noauto' fstab option for drives with removable media
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Propose 'noauto' fstab option for drives with removable media
- Date: Fri, 12 Aug 2011 14:48:21 +0000 (UTC)
commit f4b8df2d599f8a1208bd7e4d0379d2e16c68b61f
Author: David Zeuthen <davidz redhat com>
Date: Fri Aug 12 10:47:41 2011 -0400
Propose 'noauto' fstab option for drives with removable media
Otherwise systemd may time out at boot time.
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduwindow.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index 4ca3d20..ed4a9f5 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -2621,6 +2621,9 @@ on_generic_menu_item_configure_fstab (GtkMenuItem *menu_item,
dir = "";
type = "auto";
opts = "defaults";
+ /* propose noauto if the media is removable - otherwise e.g. systemd will time out at boot */
+ if (drive != NULL && udisks_drive_get_media_removable (drive))
+ opts = "defaults,noauto";
freq = 0;
passno = 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]