Skip to content

Commit

Permalink
Do not allow mutually exclusive custom mount options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tails developers authored and daniel-baumann committed Apr 5, 2012
1 parent 0804cf7 commit 5abe4ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/live-helpers
Expand Up @@ -1357,6 +1357,11 @@ activate_custom_mounts ()
esac
done

if [ -n "${opt_linkfiles}" ] && [ -n "${opt_union}" ]
then
log_warning_msg "Skipping custom mount ${dest} with options ${options}: \"linkfiles\" and \"union\" are mutually exclusive options"
fi

if [ -n "$(what_is_mounted_on "${dest}")" ]
then
log_warning_msg "Skipping custom mount ${source} on ${dest}: $(what_is_mounted_on "${dest}") is already mounted there"
Expand Down

0 comments on commit 5abe4ba

Please sign in to comment.