feat: Create minimal Zero-OS initramfs with console support
- Fixed build system to clone source repositories instead of downloading binaries - Enhanced scripts/fetch-github.sh with proper git repo cloning and branch handling - Updated scripts/compile-components.sh for RFS compilation with build-binary feature - Added minimal firmware installation for essential network drivers (73 modules) - Created comprehensive zinit configuration set (15 config files including getty) - Added util-linux package for getty/agetty console support - Optimized package selection for minimal 27MB initramfs footprint - Successfully builds bootable vmlinuz.efi with embedded initramfs - Confirmed working: VM boot, console login, network drivers, zinit init system Components: - initramfs.cpio.xz: 27MB compressed minimal Zero-OS image - vmlinuz.efi: 35MB bootable kernel with embedded initramfs - Complete Zero-OS toolchain: zinit, rfs, mycelium compiled from source
This commit is contained in:
@@ -29,40 +29,7 @@
|
||||
|
||||
### backend
|
||||
|
||||
In fl-server dir:
|
||||
|
||||
- create flists dir containaing dirs for each user
|
||||
ex:
|
||||
- fl-server
|
||||
- flists
|
||||
- user1
|
||||
- user2
|
||||
- include config file
|
||||
ex:
|
||||
|
||||
```yml
|
||||
host='localhost'
|
||||
port=4000
|
||||
store_url=['dir:///tmp/store0']
|
||||
flist_dir='flists'
|
||||
|
||||
jwt_secret='secret'
|
||||
jwt_expire_hours=5
|
||||
|
||||
[[users]] # list of authorized user in the server
|
||||
username = "user1"
|
||||
password = "password1"
|
||||
|
||||
[[users]]
|
||||
username = "user2"
|
||||
password = "password2"
|
||||
```
|
||||
|
||||
- Move to `fl-server` directory and execute the following command to run the backend:
|
||||
|
||||
```bash
|
||||
cargo run --bin fl-server -- --config-path config.toml
|
||||
```
|
||||
Please check [rfs server](../rfs/README.md#server-command)
|
||||
|
||||
### frontend
|
||||
|
||||
|
||||
Reference in New Issue
Block a user