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.
|
Decrease verbosity.
|
||||||
|
|
||||||
.. option:: --force-root
|
|
||||||
|
|
||||||
Force to run as root.
|
|
||||||
|
|
||||||
.. option:: --unset, --default, --delete, -D
|
.. option:: --unset, --default, --delete, -D
|
||||||
|
|
||||||
Unset the property. If is has default value, it will be used instead.
|
Unset the property. If is has default value, it will be used instead.
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
import argparse
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import qubes
|
import qubes
|
||||||
@ -33,8 +34,11 @@ import qubes.tools
|
|||||||
import qubes.utils
|
import qubes.utils
|
||||||
|
|
||||||
|
|
||||||
parser = qubes.tools.QubesArgumentParser(
|
parser = qubes.tools.QubesArgumentParser()
|
||||||
want_force_root=True)
|
|
||||||
|
# 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',
|
parser.add_argument('--help-properties',
|
||||||
action=qubes.tools.HelpPropertiesAction)
|
action=qubes.tools.HelpPropertiesAction)
|
||||||
|
Loading…
Reference in New Issue
Block a user