-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
435 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# VMP Debian RootFS | ||
|
||
This subdirectory contains the scripts and configuration files to build a Debian | ||
root filesystem with the complete VMP stack installed. | ||
|
||
We use [rootfsbuilder](https://github.com/hmelder/rootfsbuilder) to build the | ||
root filesystem. By default, a squashfs image is created, but it is also possible | ||
to create a tarball by adding `"tarball_type": "tar.gz"` to the JSON configuration. | ||
|
||
## Building the root filesystem | ||
|
||
Obtain the `rootfsbuilder` tool by building it from source. More | ||
information about the tool and the build process can be found in the | ||
projects README. | ||
After that, run the following command to build the root filesystem: | ||
|
||
```bash | ||
sudo ./setup.sh # This will create payload.tar | ||
sudo rootfsbuilder bookworm-amd64.json | ||
``` | ||
|
||
The payload contains a post install script that builds the Objective-C environment (libobjc2, libdispatch (Grand Central Dispatch), gnustep-base (Foundation)). If everything goes well, you now have a squashfs image in | ||
the current working directory. | ||
|
||
## Customizing the root filesystem | ||
|
||
You can add additional files to the root filesystem by adding them to the | ||
payload directory. The files will be copied to the root filesystem during the | ||
build process. | ||
|
||
If you want to change the release or distribution, you can modify the | ||
build configuration JSON file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"config_version": 1, | ||
"name": "VMP OS", | ||
"distribution": "debian", | ||
"release": "bookworm", | ||
"architecture": "arm64", | ||
"variant": "minbase", | ||
"mirror": "http://deb.debian.org/debian/", | ||
"squashfs": true, | ||
"additional_packages": [ | ||
"ca-certificates", | ||
"locales", | ||
"sudo", | ||
"wget", | ||
"systemd-timesyncd" | ||
], | ||
"payload": "payload.tar", | ||
"payload_type:": "tar", | ||
"post_install_command": "bash /root/post-install.sh", | ||
"use_hosts_resolv_conf": true | ||
} |
Oops, something went wrong.