2019-02-28 17:07:24 +00:00
|
|
|
go_md2man_command = [
|
|
|
|
go_md2man,
|
|
|
|
'-in', '@INPUT@',
|
|
|
|
'-out', '@OUTPUT@',
|
|
|
|
]
|
|
|
|
|
|
|
|
manuals = [
|
|
|
|
'toolbox.1',
|
|
|
|
'toolbox-create.1',
|
|
|
|
'toolbox-enter.1',
|
2019-05-10 18:38:46 +00:00
|
|
|
'toolbox-init-container.1',
|
2019-07-15 08:23:25 +00:00
|
|
|
'toolbox-help.1',
|
2019-02-28 17:07:24 +00:00
|
|
|
'toolbox-list.1',
|
Add a reset command
The 'reset' command is meant to factory reset the local Podman and
Toolbox installations. Every now and then early adopters and testers of
Toolbox have to do this when their local Podman state has gotten
irrecoverably broken due to some Podman bug.
It's useful to have a command that encapsulates all the steps to do a
factory reset, as opposed to having to spell them out separately. It's
easier to document, helps with user support, and can enable less opaque
error messages that suggest a way forward when nothing is working.
Since this command is meant to be used when the Podman installation is
completely broken, it must avoid using any Podman commands at all
costs. This is why it cannot use 'podman stop' to stop any running
containers, nor can it use 'podman unshare' to delete
~/.local/share/containers when running rootless. Instead, it relies on
the user rebooting the machine for the former, and uses newgidmap(1),
newuidmap(1) and unshare(1) to reimplement 'podman unshare' for the
latter.
Note that when running as root, some care has been taken to avoid
removing directories that might be owned by the operating system. eg.,
on Fedora /var/lib/containers/sigstore is owned by the
containers-common RPM.
https://github.com/containers/toolbox/pull/295
2019-10-11 12:05:15 +00:00
|
|
|
'toolbox-reset.1',
|
2019-02-19 15:59:19 +00:00
|
|
|
'toolbox-rm.1',
|
|
|
|
'toolbox-rmi.1',
|
2019-03-08 06:42:29 +00:00
|
|
|
'toolbox-run.1',
|
2019-02-28 17:07:24 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
foreach manual: manuals
|
|
|
|
input = manual + '.md'
|
|
|
|
output = manual
|
|
|
|
|
|
|
|
custom_target(
|
|
|
|
output,
|
|
|
|
command: go_md2man_command,
|
|
|
|
input: input,
|
|
|
|
install: true,
|
2019-03-06 16:07:35 +00:00
|
|
|
install_dir: join_paths(get_option('mandir'), 'man1'),
|
2019-02-28 17:07:24 +00:00
|
|
|
output: output,
|
|
|
|
)
|
|
|
|
endforeach
|