https://github.com/uoi-io/discoverd
Discoverd is a ramdisk to get some informations from a server
https://github.com/uoi-io/discoverd
cpio discoverd init initramfs initrd kernel ramdisk
Last synced: 10 months ago
JSON representation
Discoverd is a ramdisk to get some informations from a server
- Host: GitHub
- URL: https://github.com/uoi-io/discoverd
- Owner: uoi-io
- Created: 2016-01-13T17:04:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T04:09:15.000Z (almost 9 years ago)
- Last Synced: 2025-03-06T17:49:17.939Z (about 1 year ago)
- Topics: cpio, discoverd, init, initramfs, initrd, kernel, ramdisk
- Language: Shell
- Homepage: http://www.uoi.io
- Size: 25.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discoverd
Discoverd image is only useful to collect informations of an asset and learn howto build a ramdisk.
- Interfaces name, speed, status, mac, etc...
- Processor, memory
- Virtual machine, physical server
### Build the image
Before bulding the image, few packages are required:
```sh
$ sudo apt-get install curl debootstrap
```
Build the discoverd image is easy, just run the ``mkdiscoverd.sh`` script. Before running this script be sure that ``debootstrap`` *(this packages exists on Red Hat distributions)* and ``sudo`` packages are installed.
```sh
$ git clone git@github.com:uoi-io/discoverd.git
$ cd discoverd
$ ./mkdiscoverd.sh
```
When the build is done, a directory named ``generated`` has been created the ``discoverd.img.gz`` ramdisk and the ``vmlinuz`` associated to this ramdisk.
### Extract the image
For some reasons you might want extract the image to add scripts, files, etc... To avoid a full rebuild just follow the steps below.
```sh
$ gunzip discoverd.img.gz
$ mkdir discoverd ; cd discoverd
$ cpio -idv < ../discoverd.img
$ echo "> UOI DISCOVERD IMAGE <" > etc/motd
$ mkdir opt/folder1
```
Then rebuild the image with the changes made.
```
$ find . | cpio -H newc -o | gzip -v -c > ../discoverd.img.gz
```
The compression is done by ``gzip`` but it can be done by another compression tools:
- ``bzip2``
- ``lzma``
- ``xz``