[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] [PATCH] Ensure parted doesn't prompt if labeling disk
- From: Cole Robinson <crobinso redhat com>
- To: libvir-list redhat com
- Subject: [libvirt] [PATCH] Ensure parted doesn't prompt if labeling disk
- Date: Sun, 10 Aug 2008 22:40:30 -0400
Trying to 'build' a disk pool uses 'parted mklabel' which can
prompt for confirmation. Patch adds the '--script' option to
remove the chance of this happening.
Thanks,
Cole
diff --git a/src/storage_backend_disk.c b/src/storage_backend_disk.c
index d6548eb..39b857c 100644
--- a/src/storage_backend_disk.c
+++ b/src/storage_backend_disk.c
@@ -406,6 +406,7 @@ virStorageBackendDiskBuildPool(virConnectPtr conn,
PARTED,
pool->def->source.devices[0].path,
"mklabel",
+ "--script",
virStorageBackendDiskPoolFormatToString(conn, pool->def->source.format),
NULL,
};
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]