Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 2.03 KB

File metadata and controls

63 lines (45 loc) · 2.03 KB

azldev advanced mock shell

Enter mock shell

Synopsis

Start an interactive shell inside a mock chroot environment.

This is useful for inspecting built RPMs, debugging package issues, or running smoke tests. Packages can be pre-installed into the chroot using --add-package. Extra arguments after -- are passed to the shell command.

azldev advanced mock shell [flags]

Examples

  # Open a mock shell
  azldev advanced mock shell

  # Open a shell with packages pre-installed
  azldev advanced mock shell --add-package /path/to/my-package.rpm

  # Open a shell with network access
  azldev advanced mock shell --enable-network

  # Run a command inside the mock shell
  azldev advanced mock shell -- rpm -qa

Options

  -p, --add-package stringArray   Package to add to the mock root before starting the shell
  -c, --config string             Path to the mock .cfg file
      --enable-network            Enable network access in the mock root
  -h, --help                      help for shell

Options inherited from parent commands

  -y, --accept-all                accept all prompts
      --color mode                output colorization mode {always, auto, never} (default auto)
      --config-file stringArray   additional TOML config file(s) to merge (may be repeated)
  -n, --dry-run                   dry run only (do not take action)
      --network-retries int       maximum number of attempts for network operations (minimum 1) (default 3)
      --no-default-config         disable default configuration
  -O, --output-format fmt         output format {csv, json, markdown, table} (default table)
      --permissive-config         do not fail on unknown fields in TOML config files
  -C, --project string            path to Azure Linux project
  -q, --quiet                     only enable minimal output
  -v, --verbose                   enable verbose output

SEE ALSO