]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-options: Remove the deprecated -chroot option
authorThomas Huth <thuth@redhat.com>
Thu, 18 Jan 2024 10:37:59 +0000 (11:37 +0100)
committerThomas Huth <thuth@redhat.com>
Fri, 19 Jan 2024 10:38:32 +0000 (11:38 +0100)
It's been marked as deprecated since QEMU 8.1, so it should be fine
to remove this now.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240118103759.130748-5-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
docs/about/deprecated.rst
docs/about/removed-features.rst
qemu-options.hx
system/vl.c

index 1c92a1789674d73fb5286a75f9777105cc5b2d14..9a2c99461741617e9408062b529f4a91b149ebd5 100644 (file)
@@ -63,11 +63,6 @@ as short-form boolean values, and passed to plugins as ``arg_name=on``.
 However, short-form booleans are deprecated and full explicit ``arg_name=on``
 form is preferred.
 
-``-chroot`` (since 8.1)
-'''''''''''''''''''''''
-
-Use ``-run-with chroot=dir`` instead.
-
 ``-singlestep`` (since 8.1)
 '''''''''''''''''''''''''''
 
index 43f64a26ba3c19be0858646d793153b604450f7d..a8546f47870709914a13fa9c1acdbe846fad9059 100644 (file)
@@ -477,6 +477,11 @@ Use ``-machine acpi=off`` instead.
 
 Use ``-run-with async-teardown=on`` instead.
 
+``-chroot`` (removed in 9.0)
+''''''''''''''''''''''''''''
+
+Use ``-run-with chroot=dir`` instead.
+
 
 QEMU Machine Protocol (QMP) commands
 ------------------------------------
index 8299f5cc0f5cf339709984ee13f58da63ef0d7f3..42d813474b18608e9342546e6a62be387ac71f80 100644 (file)
@@ -4792,18 +4792,6 @@ SRST
     ``-nodefaults`` option will disable all those default devices.
 ERST
 
-#ifndef _WIN32
-DEF("chroot", HAS_ARG, QEMU_OPTION_chroot, \
-    "-chroot dir     chroot to dir just before starting the VM (deprecated)\n",
-    QEMU_ARCH_ALL)
-#endif
-SRST
-``-chroot dir``
-    Deprecated, use '-run-with chroot=...' instead.
-    Immediately before starting guest execution, chroot to the specified
-    directory. Especially useful in combination with -runas.
-ERST
-
 #ifndef _WIN32
 DEF("runas", HAS_ARG, QEMU_OPTION_runas, \
     "-runas user     change to user id user just before starting the VM\n" \
index 924356f8648fdba67aa525502b2424bad677bf7e..c125fb9079b8eb3c345f0e1561a19ffc1bb190e1 100644 (file)
@@ -3592,11 +3592,6 @@ void qemu_init(int argc, char **argv)
                     exit(1);
                 }
                 break;
-            case QEMU_OPTION_chroot:
-                warn_report("option is deprecated,"
-                            " use '-run-with chroot=...' instead");
-                os_set_chroot(optarg);
-                break;
             case QEMU_OPTION_daemonize:
                 os_set_daemonize(true);
                 break;