-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quiz: update license headers, dates, SPDX tags
- Loading branch information
Showing
16 changed files
with
99 additions
and
24 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 |
---|---|---|
@@ -1,4 +1,11 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# first-stage init; getting the filesystems up, then we bounce into the | ||
# second-stage init in the quiz work dir | ||
|
@@ -49,3 +56,5 @@ umount --lazy /mnt | |
|
||
# bounce into the second stage | ||
exec /.quiz/init2 | ||
|
||
# vim: ft=sh |
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,4 +1,11 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# second-stage init. filesystem is up, now actually boot the system and run | ||
# the user program | ||
|
@@ -67,3 +74,5 @@ fi | |
|
||
# start a "real" init and hand control to rc | ||
exec tini -vwsg -- /bin/sh -l -- /.quiz/rc/run | ||
|
||
# vim: ft=sh |
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,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Copyright (c) 2023, Rob Norris <[email protected]> | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
set -uo pipefail | ||
|
||
|
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,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Copyright (c) 2023, Rob Norris <[email protected]> | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
set -uo pipefail | ||
|
||
|
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,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Copyright (c) 2023, Rob Norris <[email protected]> | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
set -uo pipefail | ||
|
||
|
@@ -133,3 +134,5 @@ for k in $cleanup_kernels ; do | |
fi | ||
done | ||
done | ||
|
||
# vim: ft=bash |
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,8 +1,10 @@ | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Copyright (c) 2023, Rob Norris <[email protected]> | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# default config for 'quiz', including generated config | ||
# don't change this, override in quiz.cfg | ||
|
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,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Copyright (c) 2023, Rob Norris <[email protected]> | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# | ||
# Linux source version numbers (the tarball version) don't always match their | ||
|
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,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Copyright (c) 2023, Rob Norris <[email protected]> | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
set -uo pipefail | ||
|
||
|
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,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Copyright (c) 2023, Rob Norris <[email protected]> | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
set -uo pipefail | ||
|
||
|
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 |
---|---|---|
|
@@ -7,3 +7,5 @@ QUIZ_MEMDEV_COUNT=6 | |
|
||
QUIZ_BLOCKDEV_COUNT=4 | ||
QUIZ_BLOCKDEV_SIZE=1G | ||
|
||
# vim: ft=bash |
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,4 +1,11 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# "raw" rc. just the kernel and program output, all in one, good for piping and | ||
# redirecting. | ||
|
@@ -11,3 +18,5 @@ | |
exec script -q -e \ | ||
-c '/bin/sh -- /.quiz/run' \ | ||
/dev/null | ||
|
||
# vim: ft=sh |
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,9 +1,13 @@ | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Copyright (c) 2023, Rob Norris <[email protected]> | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# when enabled, hypervisor will pass signals through to the guess | ||
# when disabled, hypervisor will handle signals itself | ||
_quiz_rc_signals=on | ||
|
||
# vim: ft=bash |
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,4 +1,11 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# "tmux" rc, for easier interactive use. | ||
# | ||
|
@@ -54,3 +61,5 @@ dmesg -W & dmesg_pid=$! | |
|
||
# done | ||
finish | ||
|
||
# vim: ft=sh |
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,4 +1,11 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# "tmux" rc, for easier interactive use. | ||
# | ||
|
@@ -20,3 +27,5 @@ dmesg -n 1 | |
tmux -2u -f /.quiz/rc/tmux.conf \ | ||
new-session -n 'dmesg' dmesg -w \; \ | ||
new-window -n 'run' /.quiz/rc/main \; \ | ||
|
||
# vim: ft=sh |
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,3 +1,11 @@ | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# basic colours and status layout here | ||
set -g status-style 'bg=color52,fg=white' | ||
set -g status-left '[🧩quiz] ' | ||
|
@@ -16,3 +24,5 @@ set -g status-keys vi | |
# crashes will go to the console "under" tmux, overdrawing makes it much less | ||
# confusing | ||
set -g status-interval 1 | ||
|
||
# vim: ft=tmux |
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,9 +1,13 @@ | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Copyright (c) 2023, Rob Norris <[email protected]> | ||
# | ||
# Copyright (c) 2023-2025, Rob Norris <[email protected]> | ||
|
||
# when enabled, hypervisor will pass signals through to the guess | ||
# when disabled, hypervisor will handle signals itself | ||
_quiz_rc_signals=off | ||
|
||
# vim: ft=bash |