osi-tools/README.md

34 lines
1.1 KiB
Markdown
Raw Normal View History

2023-10-23 22:17:03 +00:00
# osi-tools: Operating System Image Tools
2018-08-18 17:32:19 +00:00
## Usage
2023-10-23 22:17:03 +00:00
$ ./osi-mk [FLAGS] SYS.img # to build an image
$ ./osi-shell SYS.img # launch an interactive shell in an emulator
$ sudo ./osi-mount --{root|user} SYS.img COMMAND # run command with SYS.img mounted
$ sudo ./osi-extract SYS.img IMAGE_SRC_DIR HOST_DST_DIR # to extract files from an image
2018-08-18 17:32:19 +00:00
## Dependencies
2023-10-23 22:17:03 +00:00
I believe the complete list of dependencies is (along with what I
believe is the newest feature that is depended on):
2018-08-18 17:32:19 +00:00
- arch-install-scripts
- btrfs-progs
- GNU Bash 4.4 (needs `@Q`)
- GNU coretutils 8.15 (needs `realpath`)
- GNU gettext
- QEMU (needs `qemu-system-x86_64`)
2018-08-18 18:48:21 +00:00
- sed
2018-08-18 17:32:19 +00:00
- sudo
2023-10-23 22:17:03 +00:00
- util-linux-ng 2.18 or newer (needs automatic loop devices in `mount`)
This can be install on a Parabola Parabola GNU/Linux-libre system with
the following command:
sudo pacman -S --needed arch-install-scripts btrfs-progs bash coreutils gettext qemu-system-x86 sed sudo util-linux
2018-08-18 17:32:19 +00:00
## Developing
You can lint the code in this repository by running `make lint`, which
requires the `shellcheck` command.