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:
parent
a318d5cea9
commit
210cb65d1c
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user