summaryrefslogtreecommitdiff
path: root/hscript/disk.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-31 12:47:43 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-31 12:47:43 -0500
commitbd078146c3b2ab4fb8011e67d9d5c9016bb9d09b (patch)
tree2368d6615fbbea11b3ce603a65582391e6888b53 /hscript/disk.cc
parenta8230b7464e7fe71a551a0c987f5b994eab36e93 (diff)
downloadhorizon-bd078146c3b2ab4fb8011e67d9d5c9016bb9d09b.tar.gz
horizon-bd078146c3b2ab4fb8011e67d9d5c9016bb9d09b.tar.bz2
horizon-bd078146c3b2ab4fb8011e67d9d5c9016bb9d09b.tar.xz
horizon-bd078146c3b2ab4fb8011e67d9d5c9016bb9d09b.zip
hscript: Remove bad test from Mount::validate
Diffstat (limited to 'hscript/disk.cc')
-rw-r--r--hscript/disk.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/hscript/disk.cc b/hscript/disk.cc
index bec5d3e..a8c70db 100644
--- a/hscript/disk.cc
+++ b/hscript/disk.cc
@@ -596,17 +596,8 @@ Key *Mount::parseFromData(const std::string &data, int lineno, int *errors,
return new Mount(lineno, dev, where, opt);
}
-bool Mount::validate(ScriptOptions options) const {
- /* We only validate if running in an Installation Environment. */
- if(!options.test(InstallEnvironment)) return true;
-
-#ifdef HAS_INSTALL_ENV
- /* XXX TODO: This will fail validation if the block device does not
- * already exist. However, we must take in to account that block devices
- * may not yet exist during the script validation phase. This check may
- * need to happen in Script::validate like the Uniqueness tests. */
- return(access(this->device().c_str(), F_OK) == 0);
-#endif /* HAS_INSTALL_ENV */
+bool Mount::validate(ScriptOptions) const {
+ return true;
}
bool Mount::execute(ScriptOptions options) const {