-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from random-archer/dev-ci-booter
ci: qemu support
- Loading branch information
Showing
36 changed files
with
481 additions
and
142 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
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 |
---|---|---|
|
@@ -8,3 +8,6 @@ | |
|
||
# image boot folder mount | ||
boot | ||
|
||
# image boot folder extract | ||
data |
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
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
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,28 @@ | ||
# This file is part of https://github.com/random-archer/mkinitcpio-systemd-tool | ||
|
||
# Override Emergency Target | ||
|
||
# TODO does not work | ||
|
||
# the default reaction to several failed cryptsetup attempts is to isolate the emergency service | ||
# which results in loss of network and forced local interactive console - no good for ssh mode | ||
|
||
[Unit] | ||
|
||
Description=Initrd Emergency State | ||
Documentation=https://github.com/random-archer/mkinitcpio-systemd-tool/blob/master/README.md | ||
ConditionPathExists=/etc/initrd-release | ||
|
||
AllowIsolate=yes | ||
|
||
After=initrd-emergency.service | ||
Requires=initrd-emergency.service | ||
|
||
[Install] | ||
# hack to force unit install | ||
WantedBy=abrakadabra.target | ||
|
||
[X-SystemdTool] | ||
|
||
# replace default emergency target | ||
InitrdPath=/etc/systemd/system/emergency.target source=/usr/lib/systemd/system/initrd-emergency.target |
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,9 @@ | ||
# | ||
# https://github.com/random-python/nspawn | ||
# | ||
|
||
# location of program resources | ||
[storage] | ||
|
||
# base directory for all resources | ||
root = /home/vsts/nspawn |
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
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
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
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,15 @@ | ||
#!/usr/bin/env python | ||
|
||
# | ||
# terminate machine | ||
# | ||
|
||
import os | ||
import sys | ||
import time | ||
|
||
this_dir = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
command = f"{this_dir}/setup.py --action desure" | ||
|
||
os.system(command) |
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 |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
|
||
machine = Machine(machine_base, this_dir) | ||
|
||
machine.produce_boot_result() | ||
machine.perform_make_boot() |
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
# | ||
# build basic archux image | ||
# build cryptsetup image | ||
# | ||
|
||
from nspawn.build import * | ||
|
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
5 changes: 2 additions & 3 deletions
5
tool/image/test/cryptsetup/etc/systemd/system/initrd-cryptsetup.path.d/override.conf
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
|
||
[X-SystemdTool] | ||
|
||
# disable default password agents, AGAIN | ||
InitrdPath=/usr/lib/systemd/system/systemd-ask-password-console.path replace=yes create=yes | ||
InitrdPath=/usr/lib/systemd/system/systemd-ask-password-wall.path replace=yes create=yes | ||
# inject busybox enviro | ||
InitrdPath=/etc/profile source=/etc/systemd/system/profile.sh |
17 changes: 17 additions & 0 deletions
17
tool/image/test/cryptsetup/etc/systemd/system/initrd-debug-progs.service.d/override.conf
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,17 @@ | ||
|
||
[X-SystemdTool] | ||
|
||
# debug support | ||
InitrdBinary=/usr/bin/strace | ||
|
||
# manual crypto mount | ||
InitrdBinary=/usr/bin/cryptsetup | ||
|
||
# dependency reporter | ||
InitrdBinary=/usr/bin/systemd-analyze | ||
|
||
# serial console resizer | ||
InitrdBinary=/usr/bin/resize | ||
|
||
# qemu guest drivers | ||
InitrdCall=add_all_modules /virtio/ |
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,5 @@ | ||
# | ||
# busybox/ash enviro | ||
# | ||
|
||
export TERM=xterm |
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
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,15 @@ | ||
#!/usr/bin/env python | ||
|
||
# | ||
# terminate machine | ||
# | ||
|
||
import os | ||
import sys | ||
import time | ||
|
||
this_dir = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
command = f"{this_dir}/setup.py --action desure" | ||
|
||
os.system(command) |
Oops, something went wrong.