qubes/tools: drop requirement of qubes-prefs --force-root

None of properties set there do any "dangerous thing" for filesystem
permissions (at least for now), so do not require it. This is mostly to
keep compatibility with %post rpm scripts (kernel-qubes-vm at least).

QubesOS/qubes-issues#2412
This commit is contained in:
Marek Marczykowski-Górecki 2016-11-03 21:55:47 +01:00
parent a318d5cea9
commit 210cb65d1c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 6 additions and 6 deletions

View File

@ -27,10 +27,6 @@ Options
Decrease verbosity.
.. option:: --force-root
Force to run as root.
.. option:: --unset, --default, --delete, -D
Unset the property. If is has default value, it will be used instead.

View File

@ -26,6 +26,7 @@
from __future__ import print_function
import argparse
import sys
import qubes
@ -33,8 +34,11 @@ import qubes.tools
import qubes.utils
parser = qubes.tools.QubesArgumentParser(
want_force_root=True)
parser = qubes.tools.QubesArgumentParser()
# keep it here for compatibility with earlier and possibly future versions
parser.add_argument('--force-root',
action='store_true', help=argparse.SUPPRESS)
parser.add_argument('--help-properties',
action=qubes.tools.HelpPropertiesAction)