Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop virtme-ng-init submodule and import commits instead #216

Merged
merged 112 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
fb3e4e8
initial commit
arighi May 28, 2023
48c872b
virtme-ng-init: initial implementation in Rust
May 27, 2023
82b527e
doc: add a proper README.md
May 30, 2023
c65dc58
create rust.yml
May 30, 2023
00c9ddc
properly handle GUI support
May 31, 2023
01e7ec7
workaround to be able to start xinit directly from a console session
Jun 1, 2023
941ad9c
doc: README.md: project merged into virtme-ng
Jun 14, 2023
b98d376
virtme-ng-init: preserve host path
Jun 5, 2023
a32583a
virtme_ng_init: properly synchronize udev and network startup
Jun 5, 2023
419fa0e
virtme-ng: allow to run snaps inside virtme-ng instances
Jun 5, 2023
cb582e6
virtme-ng: provide --enable-snaps
Jun 8, 2023
aba228a
virtme-ng-init: initialize XDG_RUNTIME_DIR
Jun 10, 2023
7fcbdf1
guest-tools: add a script to automatically start the sound subsystem
Jun 8, 2023
6453369
virtme-ng: try to automatically fix permissions of snapd state.json
Jun 14, 2023
297c225
virtme: init process refactoring
Jun 18, 2023
f0def1d
virtme-ng: pass --exec command via /proc/cmdline
Jun 18, 2023
83ccbc3
virtme-ng-init: support 32-bit architectures
Jun 19, 2023
2bae602
virtme-ng-init: use usize instead of u64 in do_mount()
Jun 20, 2023
1b034f3
virtme-ng-init: minor coding style fixes
Jun 20, 2023
be36362
virtme-ng-init: relax 'nix' and 'users' crate dependencies
Jun 20, 2023
027a7b8
remove Cargo.lock
Jun 21, 2023
788e1f1
update README.md
Jun 21, 2023
be3bf05
github: add coding style checks to the workflows
Jun 21, 2023
3aedbce
virtme-ng-init: support base64 encoded commands
Jun 28, 2023
42ab46e
cargo: use fixed versions for nix and users crate
Sep 20, 2023
79f9eea
virtme-ng-init: fail gracefully when executing external commands
Oct 6, 2023
5e8cfec
virtme-ng-init: support long commands in graphic mode
Nov 7, 2023
8196022
virtme-ng-init: make virtme-script a constant
Nov 8, 2023
67a5e2d
virtme-ng: honor virtme_user when running user script
Nov 12, 2023
b955c46
Use ? on Option where possible
psychon Nov 18, 2023
57ccbcd
Add a simple test for extract_user_script()
psychon Nov 18, 2023
2f3f23e
Simplify extract_user_script()
psychon Nov 18, 2023
09ba268
Remove use of HashMap
psychon Nov 18, 2023
cae3f92
Remove Option return from run_misc_services()
psychon Nov 18, 2023
0a67aab
Simplify an env var check
psychon Nov 18, 2023
4b662f0
Simplify(?) some environment lookup
psychon Nov 18, 2023
5791802
Simplify lookup of $virtme_user
psychon Nov 18, 2023
3e81dab
Simplify(?) some command construction
psychon Nov 18, 2023
26dbacb
Remove useless Some-wrapping
psychon Nov 18, 2023
1342325
Remove unnecessary 'static
psychon Nov 18, 2023
3837d68
Replace e.g. libc::S_IRWXU with Mode::S_IRWXU
psychon Nov 18, 2023
af941a0
Fix clippy warnings around logging
psychon Nov 18, 2023
2ba3590
Fix clippy warnings about patterns
psychon Nov 18, 2023
cd445fa
Fix clippy warning about unnecessary return
psychon Nov 18, 2023
f7f408b
Fix clippy warnings about reading lines
psychon Nov 18, 2023
b527b1f
Fix clippy warning about "loop never loops"
psychon Nov 18, 2023
4c58a8a
Fix clippy warning about "push() after creation"
psychon Nov 18, 2023
8dc22f7
Fix clippy warning about unnecessary matching
psychon Nov 18, 2023
a54c55b
Simplify opening of TTYs
psychon Nov 18, 2023
1b40800
Use uname() from nix instead of libc
psychon Nov 18, 2023
8ab6190
Remove useless to_string()
psychon Nov 18, 2023
c2ccb7c
Simplify /etc/shadow generation
psychon Nov 18, 2023
611637c
Use utils::create_file() to write some file contents
psychon Nov 18, 2023
1bcb58e
Remove an unnecessary Vec
psychon Nov 18, 2023
63a360c
Refactor logic in find_udevd()
psychon Nov 18, 2023
cbb5be6
Allow run_cmd() with non-utf8-strings
psychon Nov 18, 2023
7e117fc
Avoid allocations for static strings for run_shell()
psychon Nov 18, 2023
291c476
Use nix' flags instead of libc's in one more place
psychon Nov 18, 2023
9f551a4
Avoid temporary allocation for PathBuf
psychon Nov 18, 2023
a18e894
Merge pull request #2 from psychon/refactorings
Nov 18, 2023
0cf69d0
Add a log!() macro
psychon Nov 18, 2023
f71b2f0
(Needlessly) optimise logging
psychon Nov 18, 2023
6c6380c
Use write_all() instead of write()
psychon Nov 18, 2023
70023b0
Remove unnecessary trim_end_matches('\n')
psychon Nov 18, 2023
b98f4d0
Merge pull request #3 from psychon/logging
Nov 18, 2023
a560504
utils: Don't log mount failures due to ENOENT
zevweiss Nov 18, 2023
bb1c2ff
Don't try to run systemd-tmpfiles on non-systemd systems
zevweiss Nov 18, 2023
00e258c
Merge pull request #1 from zevweiss/mount-enoent-nolog
Nov 18, 2023
7554a2c
Add guest hostname to /etc/hosts
zevweiss Nov 19, 2023
f2e453b
Merge pull request #4 from zevweiss/add-hostname-to-etc-hosts
Nov 19, 2023
4cbde3a
virtme-ng-init: always set XDG_RUNTIME_DIR
Nov 19, 2023
2d5e04b
virtme-ng-init: set proper ownership of the default console device
Nov 19, 2023
c5ec469
virtme-ng-init: set the proper ownership on the virtio-ports devices
Nov 19, 2023
dae0ab8
virtme-ng-init: fix build error with older versions of rustc
Nov 22, 2023
f99e78e
virtme-ng-init: add default secure_path to /etc/sudoers
Nov 23, 2023
2a0f072
virtme-ng-init: drop usage of group when chwon'ing
Dec 1, 2023
bd763bf
virtme-ng-init: docker host support
Dec 21, 2023
787fd07
virtme-ng-init: do not remount /run
nkapron Jan 2, 2024
6275ddd
Merge pull request #6 from nkapron/development
Jan 2, 2024
0b66655
virtme-ng-init: channel the return code of a command to the host
Jan 31, 2024
c4d5846
virtme-ng-init: allow virtme-ng to specify a console device
Feb 4, 2024
c44e0d0
virtme-ng-init: always override sudoers
Feb 13, 2024
c82a371
virtme-ng-init: handle command line option nr_open
Feb 22, 2024
76d0b02
virtme-ng-init: apply limits after mounting kernel filesystems
Feb 22, 2024
ce75607
virtme-ng-init: hide additional sudo settings
Feb 22, 2024
19b69b2
virtme-ng-init: print a hint to exit from virtme-ng
Feb 22, 2024
f733e04
virtme-ng-init: allow to mount legacy cgroupfs (v1)
Mar 2, 2024
ae75ff3
init: set the HOME env var if root
matttbe Mar 14, 2024
a21938a
Merge pull request #7 from matttbe/home
Mar 15, 2024
a855bde
virtme-ng-init: properly configure terminal line settings
Mar 15, 2024
3f069c9
add Cargo.lock
Mar 20, 2024
b6252af
README.md: add building and installation section
ThibF May 24, 2024
3759cc8
virtme-ng-init: allow /tmp to be mounted from host
ThibF May 24, 2024
93dabf0
Merge pull request #10 from ThibF/thibf/build_install_doc
May 24, 2024
ceb5b21
Merge pull request #9 from ThibF/thibf/allow_tmp_overlay
May 24, 2024
ceee700
virtme-ng-init: move all temp files to /run/tmp
May 25, 2024
b5b669d
virtme-ng-init: overlayfs: fall back to mounting without xino option
Jun 20, 2024
9595585
main.rs: Enable lvm usage
marcosps Oct 18, 2024
e2c0397
Merge pull request #11 from marcosps/enable-lvm-usage
arighi Oct 18, 2024
2320739
net: support multiple interfaces
matttbe Nov 27, 2024
a4d6ebc
net: setup the loopback iface in a thread
matttbe Nov 27, 2024
0d430a7
poweroff: fix irrefutable 'if let' pattern warning
matttbe Nov 27, 2024
2b35f9f
Merge pull request #12 from matttbe/multiple-ifaces
arighi Nov 27, 2024
97e5dd7
vsock: socat service for remote console
matttbe Nov 29, 2024
9d44940
Merge pull request #13 from matttbe/vsock
arighi Nov 29, 2024
c4bc837
vsock: mount virtme_vsockmount if needed
matttbe Dec 2, 2024
da22ec5
Merge pull request #14 from matttbe/vsock-connect
arighi Dec 2, 2024
e33b56f
ssh: support virtme.ssh
arighi Dec 23, 2024
67d006f
Merge pull request #15 from arighi/sshd
arighi Dec 23, 2024
d3aba35
virtme-ng-init: remove the submodule
matttbe Jan 6, 2025
bcfcc9d
merge virtme-ng-init into virtme-ng
arighi Jan 8, 2025
360894c
gh: import and adapt rust workflow
matttbe Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Rust

on:
push:
branches:
- main
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

defaults:
run:
working-directory: ./virtme_ng_init

steps:
- uses: actions/checkout@v3
- name: Coding style
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "virtme_ng_init"]
path = virtme_ng_init
url = https://github.com/arighi/virtme-ng-init.git
1 change: 0 additions & 1 deletion virtme_ng_init
Submodule virtme_ng_init deleted from 9b1e02
1 change: 1 addition & 0 deletions virtme_ng_init/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
86 changes: 86 additions & 0 deletions virtme_ng_init/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions virtme_ng_init/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "virtme-ng-init"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
nix = "0.26"
users = "0.11"
base64 = "0.21"
Loading
Loading