2020-04-17 17:14:25 +03:00
|
|
|
Tinyramfs
|
|
|
|
=========
|
|
|
|
|
|
|
|
**Currently tinyramfs is incomplete, don't expect that everything is working**
|
|
|
|
|
2020-02-09 21:13:39 +00:00
|
|
|
Features
|
2020-04-11 19:36:16 +00:00
|
|
|
--------
|
2020-04-11 22:31:02 +03:00
|
|
|
|
|
|
|
- No `local`'s, no bashisms, only POSIX shell
|
2020-06-28 06:58:57 +03:00
|
|
|
- Portable, not distro specific
|
|
|
|
- Easy to use configuration
|
|
|
|
- Build time and init time hooks
|
|
|
|
- LUKS (detached header, key), LVM
|
2020-07-15 22:23:12 +03:00
|
|
|
- mdev, mdevd, eudev, systemd-udevd
|
2020-04-11 22:31:02 +03:00
|
|
|
|
|
|
|
Dependencies
|
2020-02-09 21:13:39 +00:00
|
|
|
------------
|
2020-04-11 22:31:02 +03:00
|
|
|
|
2020-09-04 09:00:59 +03:00
|
|
|
* POSIX make (build time)
|
2020-06-28 06:58:57 +03:00
|
|
|
* POSIX utilities
|
2020-04-11 22:31:02 +03:00
|
|
|
* POSIX shell
|
2020-04-17 17:14:25 +03:00
|
|
|
* `switch_root`
|
|
|
|
* `mount`
|
|
|
|
* `cpio`
|
2021-05-10 16:04:13 +03:00
|
|
|
* `ldd`
|
|
|
|
- Optional. Required for copying binary dependencies
|
2020-07-15 22:23:12 +03:00
|
|
|
* `strip`
|
2021-05-10 11:22:33 +03:00
|
|
|
- Optional. Required for reducing image size by stripping binaries
|
2020-07-15 22:23:12 +03:00
|
|
|
* `blkid`
|
2020-09-09 13:03:55 +03:00
|
|
|
- Optional. Required for UUID, LABEL, PARTUUID support
|
2020-07-15 23:26:12 +03:00
|
|
|
* `mdev` OR `mdevd` OR `eudev` OR `systemd-udevd` OR CONFIG_UEVENT_HELPER
|
2020-09-09 13:03:55 +03:00
|
|
|
- Optional. Required for modular kernel, /dev/mapper/* and /dev/disk/* creation
|
2020-04-11 22:31:02 +03:00
|
|
|
* `lvm2`
|
2020-09-09 13:03:55 +03:00
|
|
|
- Optional. Required for LVM support
|
2020-04-17 17:14:25 +03:00
|
|
|
* `cryptsetup`
|
2020-09-09 13:03:55 +03:00
|
|
|
- Optional. Required for LUKS support
|
2020-09-04 08:49:45 +03:00
|
|
|
* `busybox loadkmap`
|
2020-09-09 13:03:55 +03:00
|
|
|
- Optional. Required for keymap support
|
|
|
|
* `kmod` OR `busybox modutils` with [patch](https://gist.github.com/illiliti/ef9ee781b5c6bf36d9493d99b4a1ffb6) (already included in KISS Linux)
|
2020-05-07 15:06:34 +03:00
|
|
|
- Not required for monolithic kernel
|
2020-04-17 17:14:25 +03:00
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
2020-05-07 15:06:34 +03:00
|
|
|
|
2020-04-17 17:14:25 +03:00
|
|
|
```sh
|
|
|
|
git clone https://github.com/illiliti/tinyramfs
|
|
|
|
cd tinyramfs
|
|
|
|
make install
|
2020-09-04 08:49:45 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
```sh
|
2020-09-09 13:03:55 +03:00
|
|
|
# read tinyramfs.config(5) and setup /etc/tinyramfs/config
|
2021-05-10 16:04:13 +03:00
|
|
|
# run as root
|
2020-09-04 11:47:16 +03:00
|
|
|
tinyramfs -o "/boot/initramfs-$(uname -r)"
|
2020-04-17 17:14:25 +03:00
|
|
|
# update your bootloader
|
|
|
|
# reboot...
|
|
|
|
```
|
2020-04-11 22:31:02 +03:00
|
|
|
|
2020-04-17 17:14:25 +03:00
|
|
|
Thanks
|
|
|
|
------
|
2020-04-11 22:31:02 +03:00
|
|
|
|
2020-05-07 15:06:34 +03:00
|
|
|
[E5ten](https://github.com/E5ten)
|
2020-04-17 17:14:25 +03:00
|
|
|
[dylanaraps](https://github.com/dylanaraps)
|
2020-04-11 22:31:02 +03:00
|
|
|
|
2020-08-05 00:52:57 +03:00
|
|
|
Donate
|
|
|
|
------
|
|
|
|
|
|
|
|
You can donate if you like this project
|
2020-04-11 22:31:02 +03:00
|
|
|
|
2020-08-05 00:52:57 +03:00
|
|
|
BTC: 1BwrcsgtWZeLVvNeEQSg4A28a3yrGN3FpK
|