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

[pull] main from u-root:main #31

Open
wants to merge 339 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
339 commits
Select commit Hold shift + click to select a range
c4de374
cmds/core/more: use flag package
jensdrenhaus Jun 11, 2024
3f8f979
cmds/core/rsdp: use flag package
jensdrenhaus Jun 11, 2024
27e6854
cmds/core/mktemp: use flag package
jensdrenhaus Jun 11, 2024
e8d61fa
cmds/core/tee: use flag package
jensdrenhaus Jun 11, 2024
bf22047
cmds/core/tar: use flag package
jensdrenhaus Jun 11, 2024
bd8092b
cmds/core/cp: use flag package
jensdrenhaus Jun 11, 2024
173fd2a
cmds/core/grep: use flag package
jensdrenhaus Jun 11, 2024
4c1c879
cmds/core/ps: use flag package
jensdrenhaus Jun 11, 2024
71657f8
cmds/core/shasum: use flag package
jensdrenhaus Jun 11, 2024
7452a71
cmds/exp/pox: use flag package
jensdrenhaus Jun 11, 2024
3f931fd
cmds/exp/esxibot: use flag package
jensdrenhaus Jun 11, 2024
344dad1
cmds/exp/newsshd: use flag package
jensdrenhaus Jun 11, 2024
443f1dd
cmds/core/netstat: use flag package
jensdrenhaus Jun 21, 2024
c29cb12
pkg/vfile: replace deprecated constants
binjip978 Jul 2, 2024
77df1b1
pox: get standalone mode working again
rminnichcodeu Jul 2, 2024
ab4ad15
pox: properly set cmd.Dir to /
rminnich Jul 2, 2024
252c235
pox: fix embedding and clean up
rminnich Jul 4, 2024
285ffb9
pkg/cpio: do not set Ino to 0 in MakeReproducible
rminnich Jun 26, 2024
5fd2afe
pkg/cpio: have MakeReproducible set NLink for GNU cpio
rminnich Jun 27, 2024
36f8bf6
pkg/cpio: io/ioutil -> io/os
rminnich Jul 4, 2024
faf6ace
pkg/strace: trace getaddrinfo
binjip978 Jul 6, 2024
d1bd6aa
pkg/strace: remove sleep.c
binjip978 Jul 6, 2024
87d4d00
pkg/smbios: Add RemoveBaseboardInfo override option to smbios modifier
stevenh-tw Jul 7, 2024
b66cfc9
pkg/ldd: add follow test
binjip978 Jul 9, 2024
1cf952c
cmds/core/lddfiles: rewrite and add simple test
binjip978 Jul 13, 2024
cacc21a
pkg/netcat: add config struct, defaults & udp-listener
Jul 8, 2024
502b244
cmds/core/netcat: extend functionality
Jul 8, 2024
f4c5ef3
cmds/core/netcat: separate plan9 impl. more granular
Jul 9, 2024
a1bffa6
pkg/netcat: use t.TempDir for testfiles
Jul 22, 2024
d3e1220
cmds/core/head: add head command
binjip978 Jul 20, 2024
f0c8d7d
cmds/core/head: use io.ReadFull for reading bytes
binjip978 Jul 23, 2024
ffb49ef
cmds/core/head: improve error handling
binjip978 Jul 24, 2024
dcb8832
cmds/core/mount: move main to run, remove globals
binjip978 Jul 29, 2024
af8bf71
cmds/core/mount: add tests
binjip978 Jul 29, 2024
bf2e60a
cmds/core/mount: update error message
binjip978 Jul 30, 2024
18acf51
[tinygo] cmds/core/df: use os.Stat instead of unix.Stat() to retrieve…
archie2x Jul 27, 2024
dfaeea7
Modify hss-file param in hss gathering to also accept directory paths
colinmitchell-ggl Jul 25, 2024
29b76c2
pkg/boot: Use a library for xz files
navidpaya Jul 28, 2024
bfbbbee
Minor fixes
navidpaya Jul 31, 2024
ae722c0
pkg/ip add documentation
Jun 27, 2024
b7e117d
separate ip functionalities into separate files
Jun 27, 2024
1a47c14
expand address, link, neigh subcommands
Jul 3, 2024
a2c918e
expand route subcommands
Jul 4, 2024
de29ad2
monitor functionalities
Jul 9, 2024
6a83ae7
cmds/core/ip: add tunnel subcommand
Jul 10, 2024
7def570
cmds/core/ip: add subcommand tcp_metrics and xfrm {state,policy,monitor}
Jul 16, 2024
e605b6a
cmds/core/ip: add tuntap subcommand
Jul 17, 2024
a52ca48
cmds/core/ip: vrf subcommand
Jul 17, 2024
c8a7515
cmds/core/ip: -4/-6 flags
Jul 17, 2024
189b8a9
cmds/core/ip: update flag parsing, add statistics flag
Jul 17, 2024
6ffc276
cmds/core/ip: add details flag
Jul 18, 2024
81be5e3
fix tests
Jul 18, 2024
05f01d6
cmds/core/ip: add loops, human-readable, iec, json, pretty options
Jul 18, 2024
b7bf0de
cmds/core/ip: add B,M,0,brief flags
Jul 22, 2024
6302b15
cmds/core/ip: add netns, rcvbuf, oneline, all, numeric, timestamp, ts…
Jul 22, 2024
d20d0d5
cmds/core/ip: batch mode
Jul 22, 2024
56de01f
cmds/core/ip: encapsulate parsing to functions nextToken, findPrefix,…
Jul 23, 2024
7d91791
cmds/core/ip: add addr options
Jul 23, 2024
61e16f9
cmds/core/ip: add tests
Jul 24, 2024
eebbb4b
cmds/core/ip: fix parsing error msg display
Jul 31, 2024
0eb397f
pkg/boot/grub: add support for grub devicetree command
tobhe Jul 27, 2024
719a74d
cmds/core/ip: fix flag parsing
Aug 1, 2024
d876f02
cmds/core/ip: improve coverage
Aug 1, 2024
1fa6eff
bump golangcilint version
binjip978 Aug 3, 2024
fefda01
cmds/core/realpath: add realpath command
binjip978 Aug 3, 2024
95fd832
Add exp/traceroute - Start of Work
ChriMarMe Jun 18, 2024
1cd8f2a
Add TCP tracing
ChriMarMe Jul 12, 2024
fcfead2
Add icmp tracing
ChriMarMe Jul 12, 2024
f07adbe
Rename Packet functions
ChriMarMe Jul 16, 2024
5c678dc
Unify IP address handling across IPv4 route tracing
ChriMarMe Jul 19, 2024
1f53a2e
Add ipv6 icmp tracing
ChriMarMe Jul 22, 2024
d5830d3
Add ipv6 tcp tracing
ChriMarMe Jul 23, 2024
2fee910
Add ipv6 upd tracing
ChriMarMe Jul 23, 2024
74d4834
Simplify NewTrace function
ChriMarMe Jul 23, 2024
8a78763
Remove "collection.go"
ChriMarMe Jul 26, 2024
125c2f8
More cleanups
ChriMarMe Jul 26, 2024
4fecbd3
Some coverage tests and adaptions for it
ChriMarMe Jul 29, 2024
c2d0e87
Implementing reviews
ChriMarMe Aug 1, 2024
c692612
cmds/exp/tcpdump: dump traffic on a network
Aug 1, 2024
1c8eecc
cmds/exp/tcpdump: add tcp prints & {number,count,numerical,list-devic…
Aug 5, 2024
f2df2fa
cmds/exp/tcpdump: add icmp prints and filter
Aug 6, 2024
fd92925
cmds/exp/tcpdump: add timestamp {t, tt, ttt, tttt, ttttt, nano}, e, x…
Aug 6, 2024
b7dc420
cmds/exp/tcpdump: add tests
Aug 8, 2024
f0c78d0
tinygo: enable cmd/core/init
leongross Aug 6, 2024
2286b49
Remove deprecated `// +build CONSTRAINT` lines
archie2x Aug 9, 2024
2e40f11
cmds/exp/tsort -> cmds/extra/tsort
rminnich Aug 10, 2024
1de3484
golangci: fix deprecated config warning
binjip978 Aug 15, 2024
ab436eb
cmds/exp/tcpdump: remove unneeded filter-file
Aug 12, 2024
51de514
cmds/exp/tcpdump: autogenerate well-known-ports map
Aug 12, 2024
63d3c03
Structs for working with clusters
rminnichcodeu Aug 12, 2024
8c25aac
cmds/core/du: du command
binjip978 Aug 15, 2024
1c579b3
cmds/core/du: add test for block counting
binjip978 Aug 16, 2024
4c38e06
cmds/core/du: add run test
binjip978 Aug 16, 2024
6795f99
cmds/core/du: clarify error message if no stat_t
binjip978 Aug 19, 2024
1a80242
feat: add sha512sum
mengzhuo Aug 19, 2024
5f07f94
cmds/core/du: add -a flag
binjip978 Aug 23, 2024
15e37a7
cmds/core/du: fix printing subfolders
binjip978 Aug 25, 2024
2ca4cd5
add cluster/nodestat command
rminnichcodeu Aug 21, 2024
e9913a7
Add network shaping capabilites to linux kernel configs
ChriMarMe Aug 27, 2024
a2b5094
tinygo: split watchdog into process based (tiyngo) and socket based
leongross Aug 9, 2024
eb95c6f
ci: move build tags after license for circle-ci
leongross Aug 12, 2024
23498ce
tinygo: enable gzip
leongross Jul 29, 2024
442ece5
tinygo: enable kmodule {insmod,rmmod,modprobe}, add test for
leongross Jul 29, 2024
f80cb83
fix compression test cases
MDr164 Aug 22, 2024
4533532
gzip: remove old build tags
leongross Aug 27, 2024
3546135
cmds/core/du: add -k flag
binjip978 Aug 28, 2024
6aacb85
Correct kernel image configs for traffic shaping
ChriMarMe Aug 28, 2024
abc8b89
cmds/core/du: add -s flag
binjip978 Aug 29, 2024
5b63e04
cmds/core/du: add usage error
binjip978 Aug 29, 2024
9552a3f
cmds/core/du: add -H flag
binjip978 Aug 30, 2024
568ae3a
cmds/core/du: add -L follow symlinks flag
binjip978 Aug 31, 2024
e1bd498
tinygo: fix pkg/kmodule/compression{,_tinygo}.go build tags
archie2x Aug 29, 2024
c01446b
cmds/core/du: rewrite to unixflag
binjip978 Sep 5, 2024
48b6312
Update kernel images to latest build. Allows for testing of traffic s…
ChriMarMe Aug 28, 2024
1f542a8
* Add 'github.com/florianl/go-tc' as dependency
ChriMarMe Aug 6, 2024
1bdc3c5
Add exp/tc class functionalities:
ChriMarMe Aug 6, 2024
f69b59e
Add exp/tc filter functionalities:
ChriMarMe Aug 8, 2024
30db40a
Add test for ParseProto and GetProtoFromInfo
ChriMarMe Aug 23, 2024
635d4f1
Add HFSC qdisc args parsing for tc qdisc and tc classj
ChriMarMe Aug 26, 2024
e2aacd2
Fixes and Improvements
ChriMarMe Aug 26, 2024
5f0a3a5
Add integration test for tc qdisc
ChriMarMe Aug 28, 2024
65d61b8
cleanup as fixup
ChriMarMe Aug 28, 2024
823eda8
Increase timeout time of smbios integration test.
ChriMarMe Aug 29, 2024
89012bf
more integration testing
ChriMarMe Aug 29, 2024
d0d67cc
Add coverage tests for cmds/exp/tc
ChriMarMe Aug 29, 2024
a47e494
* Correct license date
ChriMarMe Aug 29, 2024
02a9d2f
Add readme.md to pkg/tc to keep track of status of implementation.
ChriMarMe Sep 6, 2024
134fa25
Add comments to public functions.
ChriMarMe Sep 6, 2024
244fa29
build(deps): bump micromatch from 4.0.5 to 4.0.8 in /docs
dependabot[bot] Sep 8, 2024
3c84823
fix executeGet:
ChriMarMe Sep 9, 2024
4f901a5
Move Mock interface to test file
ChriMarMe Sep 10, 2024
f46cd04
fix tftp again:
ChriMarMe Sep 11, 2024
9401715
cmds/core/cat: remove redundant error handling
binjip978 Sep 13, 2024
98ed9b2
ipmi: Handle short ChassisStatus responses
hherman1 Sep 10, 2024
27e5e9b
cmds/core/readlink: pass stdout instead stdin
binjip978 Sep 14, 2024
8680fb5
build(deps): bump path-to-regexp from 6.2.1 to 6.3.0 in /docs
dependabot[bot] Sep 12, 2024
63d7b12
update actions
archie2x Sep 20, 2024
8f7ed1d
tinygo #2979 remove tinygo build constraints
archie2x Aug 13, 2024
20b8233
tinygo #2979 update tinygo build constraints for tinygo 0.33.0
Aug 29, 2024
c8f0483
cmds/exp/tcpdump: add check if transport layer is present
Sep 24, 2024
7443361
cmds/exp/tcpdump: remove obsolte else case
Sep 24, 2024
44289b1
pkg/boot: Add UniversalPayload package
AjanZhong Jul 8, 2024
e2e56f8
pkg/boot: UniversalPayload: Add handoffblock component
AjanZhong Jul 8, 2024
13c712c
pkg/boot: UniversalPayload: Add universalpayload loading process
AjanZhong Jul 8, 2024
cf9fe93
pkg/boot: UniversalPayload: Add universalpayload base GUID Hob
AjanZhong Jul 21, 2024
b377f06
pkg/boot: UniversalPayload: Add universalpayload ACPI table Hob
AjanZhong Jul 21, 2024
9053c18
pkg/boot: UniversalPayload: Add universalpayload SmBios table Hob
AjanZhong Jul 21, 2024
570b8d0
pkg/boot: UniversalPayload: Add CPU Hob
AjanZhong Jul 21, 2024
87b0d85
cmds/core/kexec: Add universalpayload loading process
AjanZhong Jul 8, 2024
ca8dd63
Add tests to pkg/boot/universalpayload
Raysmond Aug 16, 2024
67dcc56
Organize errors for pkg/boot/universalpayload
Raysmond Aug 29, 2024
56df2ff
pkg/boot/universalpayload: code style changes
Raysmond Aug 30, 2024
a620c4f
staticcheck: fix SA1006 Printf with dynamic
binjip978 Sep 25, 2024
7a1bcee
cmds/core/tar: use FlagSet.Args to pass args
nokute78 Sep 26, 2024
d0db803
.gitignore: add .gdb_history
leongross Sep 27, 2024
8666147
cmds/core/basename: return with non zero status on error
binjip978 Sep 27, 2024
d4b050c
build(deps): bump rollup from 3.29.4 to 3.29.5 in /docs
dependabot[bot] Sep 27, 2024
944127e
cmds/core/strings: use FlagSet.Args to pass args
nokute78 Sep 29, 2024
0da8f2d
pkg/ipmi: remove buf.Bytes()[2] <= 0xFF check
binjip978 Sep 28, 2024
df360ac
tinygo: tinygo cannot build regular go assembly files, but can build
leongross Aug 22, 2024
bc59ac6
build: only build msr assembly on x86_64
leongross Sep 9, 2024
ba18946
build: only build msr assembly on x86_64
leongross Sep 9, 2024
5d601e5
cpuid: update buildtags to build on x86_32 and x86_64
leongross Sep 17, 2024
6b8bbd2
modules: udpdate go-tpm to incorporate tingygo issues
leongross Sep 20, 2024
946329c
ci: remove go1.21.x versions from matrix runner
leongross Sep 23, 2024
fa4bc62
ci: update golang-cilint version
leongross Sep 23, 2024
2b10206
ci: enfoce new go1.22.x static checks
leongross Sep 23, 2024
18ea974
ipmi: refactoring
leongross Sep 24, 2024
d729195
ci: disable static check for dt
leongross Oct 2, 2024
15cd424
cmds/core/du: fix for relative links
binjip978 Sep 8, 2024
7996ed6
cpuid: replace unmaintained intel-go/cpuid with fork
leongross Oct 2, 2024
c2602c6
cpuid: use u-root fork
leongross Oct 2, 2024
a0070cb
golangci: increase timeout
binjip978 Oct 4, 2024
6db18df
freebsd port
rminnich Sep 29, 2024
efa5c6e
tag hostname command for plan9 || linux
rminnich Sep 29, 2024
1e34dcf
freebsd: free, init, and libinit
rminnich Sep 29, 2024
171c2b7
freebsd: mknod
rminnich Sep 29, 2024
0712e93
freebsd: mount
rminnich Sep 29, 2024
cd9cc9e
netcat: build for freebsd
rminnich Sep 29, 2024
318e10e
cmds/core/pci: make clear it only runs on Linux
rminnich Sep 29, 2024
ba4924f
cmds/core/ps: make clear it is only for linux at present
rminnich Sep 29, 2024
6c6abf6
pkg/pty: add freebsd support
rminnich Sep 29, 2024
c5ca601
pkg/mount: add freebsd Unmount
rminnich Sep 29, 2024
b74afae
cmds/core/mount: mount.go -> mount_linux.go
rminnich Sep 29, 2024
04ceff7
cmds/core/brctl: this is linux only
rminnich Sep 29, 2024
183e7a3
cmds/core/dhclient: disable it for freebsd until the dhcp package is …
rminnich Sep 29, 2024
3ce59f8
cmds/core/umount: fix for freebsd
rminnich Sep 29, 2024
88263cd
cmds/core/io: disable cmos command for freebsd
rminnich Sep 29, 2024
e5e5d76
cmds/core/rsdp: make it clear it is linux-specific
rminnich Sep 29, 2024
b44d9ae
restore multi-arch multi-os build check
rminnich Sep 29, 2024
dee1cd3
netcat/listen.go: remove unreachable return
rminnich Sep 29, 2024
54d89f1
boot/boot: make it clear it is linux-only
rminnich Sep 29, 2024
b1ab9ff
boot/fitboot: make it clear it is linux-only
rminnich Sep 29, 2024
8580a39
boot/pxeboot: make it clear it is linux only
rminnich Sep 29, 2024
6c1d8f9
pkg/libinit: add proc_freebsd.go
rminnich Sep 29, 2024
5401bbd
pkg/mount: add freebsd support for Mount, using nmount
rminnich Sep 29, 2024
fd08ee4
tinygo: add cgo implementation for trampoline code
leongross Sep 23, 2024
9abada0
multiboot: refactor
leongross Sep 24, 2024
f9ea572
trampoline: resolve linking issues
leongross Oct 10, 2024
b0fd1ab
add mount_unix.go
rminnich Oct 8, 2024
abe63b0
cmds/core/head: add stdin support
binjip978 Oct 2, 2024
7499eff
cmds/core/head: switch to 4K buffer for bytes case
binjip978 Oct 6, 2024
8e2d5e1
cmds/core/head: remove basename and comments
binjip978 Oct 13, 2024
a3bd09b
cmds/core/cat: use test helper
binjip978 Oct 16, 2024
7a89594
cmds/core/ip: use group parameter in link set command
Oct 17, 2024
cc20b99
correct the kexec documentation concerning -x/--extra
rminnich Oct 15, 2024
6d172a3
kexec: fix --append switch
rminnichcodeu Oct 15, 2024
c6dda76
cmds/core/which: use test helper
binjip978 Oct 18, 2024
3e056e5
cmds/core/blkid: use io.Writer for output
binjip978 Oct 19, 2024
0c0df67
pkg/kmodule: fix serious error with .ko files
rminnichcodeu Oct 18, 2024
0f6356a
cmds/core/cmp: wrap errors
binjip978 Oct 19, 2024
8a5a82a
cmds/core/dd: wrap errors and use errors.Is to detect specific errors
binjip978 Oct 19, 2024
21f5977
cmds/core/fusermount: wrap errors
binjip978 Oct 19, 2024
d4688f9
cmds/core/hostname: wrap errors
binjip978 Oct 19, 2024
24714ab
cmds/core/truncate: wrap errors
binjip978 Oct 19, 2024
73ee6b6
cmds/core/tee: wrap errors
binjip978 Oct 19, 2024
c44a781
cmds/core/nohup: wrap errors
binjip978 Oct 20, 2024
789e3b9
cmds/core/watchdogd: wrap errors
binjip978 Oct 20, 2024
bd8c119
cmds/core/ip: wrap errors
binjip978 Oct 21, 2024
cb307d1
cmds/core/tty: fix /dev/fd symbolic link
binjip978 Oct 21, 2024
98dc461
pkg/boot/universalpayload: Add Position Independent Execution support
AjanZhong Sep 13, 2024
28ffb65
pkg/boot/universalpayload: Add ARM64 support
AjanZhong Oct 14, 2024
6f278c5
cmds/core/netcat: wrap errors
binjip978 Oct 22, 2024
324e633
cmds/core/ping: wrap errors
binjip978 Oct 23, 2024
64c8e1c
cmds/core/id: wrap errors
binjip978 Oct 23, 2024
bd78195
cmds/core/scp: wrap errors
binjip978 Oct 23, 2024
bedbdb4
cmds/core/tr: wrap errors
binjip978 Oct 23, 2024
b9ae8bb
cmds/core/man: wrap errors
binjip978 Oct 23, 2024
22c5e3f
cmds/core/date: wrap errors
binjip978 Oct 23, 2024
b5a8e77
cmds/core/df: wrap errors
binjip978 Oct 23, 2024
1c2b524
cmds/core/gpgv: wrap errors
binjip978 Oct 23, 2024
0100506
cmds/core/kill: wrap errors
binjip978 Oct 23, 2024
dbe6881
cmds/core/mknod: wrap errors
binjip978 Oct 23, 2024
493f609
cmds/core/pci: wrap errors
binjip978 Oct 23, 2024
6920a66
pkg/forth: add a typeof operator
rminnich Oct 22, 2024
10f8c40
make the msr command much less awful to use
rminnich Oct 22, 2024
426d003
msr command: add slice support
rminnich Oct 22, 2024
098b8ef
pkg/forth: clean up error handling
rminnich Oct 22, 2024
551a081
msr: fix up and and or; leave cpu and msr on stack
rminnich Oct 22, 2024
898c531
msr: fix up doc and comments
rminnich Oct 23, 2024
63c0261
msr: if stack size is 3 at the end, just print stack[2]
rminnich Oct 23, 2024
75046e1
msr: use toslice instead of type assertion in wr()
rminnich Oct 23, 2024
dc40f72
msr: cleanly exit if there are no args
rminnich Oct 23, 2024
3320944
pkg/forth: small tweak for recovery block
rminnich Oct 24, 2024
a22ea00
cmds/exp: wrap errors
binjip978 Oct 24, 2024
01dca18
pkg: wrap errors
binjip978 Oct 25, 2024
2d11279
pkg/testutil: fix linter change manually
binjip978 Oct 25, 2024
9b56afd
use big.Rat, not int64, for integers
rminnich Oct 22, 2024
1d32605
forth: move to big.Rat as the integer type
rminnich Oct 22, 2024
e841ed1
correct a comment, add test for mod
rminnich Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .circleci/images/kernel-amd64/config_linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,27 @@ CONFIG_NET_CORE=y
CONFIG_NETDEVICES=y
CONFIG_ETHERNET=y
CONFIG_E1000=y
CONFIG_BRIDGE=y
CONFIG_BRIDGE_CFM=y
CONFIG_BRIDGE_MRP=y
CONFIG_NETLINK_DIAG=y

# Network shaping
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
CONFIG_NETFILTER_NETLINK=y
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_HFSC=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NET_SCH_CHOKE=y
CONFIG_NET_SCH_QFQ=y
CONFIG_NET_SCH_CODEL=y
CONFIG_NET_SCH_FQ_CODEL=y
CONFIG_NET_CLS=y
CONFIG_NET_CLS_BASIC=y
CONFIG_NET_CLS_ACT=y
CONFIG_NET_ACT_GACT=y

# 9P net filesystem
CONFIG_NET_9P=y
Expand Down
21 changes: 21 additions & 0 deletions .circleci/images/kernel-arm/config_linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,27 @@ CONFIG_NET_CORE=y
CONFIG_NETDEVICES=y
CONFIG_ETHERNET=y
CONFIG_E1000=y
CONFIG_BRIDGE=y
CONFIG_BRIDGE_CFM=y
CONFIG_BRIDGE_MRP=y
CONFIG_NETLINK_DIAG=y

# Network shaping
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
CONFIG_NETFILTER_NETLINK=y
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_HFSC=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NET_SCH_CHOKE=y
CONFIG_NET_SCH_QFQ=y
CONFIG_NET_SCH_CODEL=y
CONFIG_NET_SCH_FQ_CODEL=y
CONFIG_NET_CLS=y
CONFIG_NET_CLS_BASIC=y
CONFIG_NET_CLS_ACT=y
CONFIG_NET_ACT_GACT=y

# GPIO test - mock GPIO libraries
CONFIG_GPIOLIB=y
Expand Down
21 changes: 21 additions & 0 deletions .circleci/images/kernel-arm64/config_linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,27 @@ CONFIG_NET_CORE=y
CONFIG_NETDEVICES=y
CONFIG_ETHERNET=y
CONFIG_E1000=y
CONFIG_BRIDGE=y
CONFIG_BRIDGE_CFM=y
CONFIG_BRIDGE_MRP=y
CONFIG_NETLINK_DIAG=y

# Network shaping
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
CONFIG_NETFILTER_NETLINK=y
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_HFSC=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NET_SCH_CHOKE=y
CONFIG_NET_SCH_QFQ=y
CONFIG_NET_SCH_CODEL=y
CONFIG_NET_SCH_FQ_CODEL=y
CONFIG_NET_CLS=y
CONFIG_NET_CLS_BASIC=y
CONFIG_NET_CLS_ACT=y
CONFIG_NET_ACT_GACT=y

# GPIO test - mock GPIO libraries
CONFIG_GPIOLIB=y
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,35 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
26 changes: 23 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Check vendored dependencies
Expand All @@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.22.x'

Expand All @@ -59,7 +59,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.22.x'

Expand All @@ -75,3 +75,23 @@ jobs:
run: |
echo buildfail got ${{ steps.buildfail.outcome }} and should get failure
bash -c "if [[ ${{ steps.buildfail.outcome }} == failure ]]; then exit 0; else exit 1; fi"

multi-os-arch:
strategy:
matrix:
os: [linux, freebsd]
arch: [amd64, arm, arm64, riscv64]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.22.x"

- name: Build
run: |
go build .
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} ./u-root
11 changes: 6 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.56.1
version: v1.60.3
args: --out-format=line-number --timeout=5m
1 change: 1 addition & 0 deletions .github/workflows/homepage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ jobs:
with:
publish_dir: ./docs/dist
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: u-root.org
10 changes: 5 additions & 5 deletions .github/workflows/test-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/test-${{ matrix.image }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: ./.circleci/images/${{ matrix.image }}
# Build for PRs, only push for main.
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21.x', '1.22.x' ]
go-version: ['1.22.x' ]
vmarch: [ 'amd64', 'arm', 'arm64' ]
pattern: [ 'integration/generic-tests/...', 'integration/gotests/...' ]
include:
# Only run these with VM arch amd64 for now.
- go-version: '1.21.x'
vmarch: 'amd64'
pattern: 'cmds/...'
- go-version: '1.22.x'
vmarch: 'amd64'
pattern: 'cmds/...'

- go-version: '1.21.x'
vmarch: 'amd64'
pattern: 'pkg/...'
extra-arg: '-coverpkg=./pkg/...'
- go-version: '1.22.x'
vmarch: 'amd64'
pattern: 'pkg/...'
extra-arg: '-coverpkg=./pkg/...'

# Root dir tests
- go-version: '1.21.x'
vmarch: 'amd64'
pattern: '.'
- go-version: '1.22.x'
vmarch: 'amd64'
pattern: '.'
Expand All @@ -58,7 +48,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

Expand All @@ -76,7 +66,7 @@ jobs:
- name: Convert GOCOVERDIR coverage data
run: go tool covdata textfmt -i=gocov -o vmintcoverage.txt

- uses: codecov/codecov-action@v4-beta
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: '0ecf29bb-15fb-46f2-8c7d-0fb610d79f71'
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ initramfs.cpio
bzImage
vmlinux
*.patch
.gdb_history

# Python Virtual Env
*.env
Expand Down
7 changes: 2 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
run:
skip-dirs:
- pkg/uroot/test
- cmds/core/elvish

linters:
disable-all: true
enable:
Expand All @@ -18,6 +13,8 @@ linters-settings:
checks: ["all", "-ST1003"]

issues:
exclude-dirs:
- pkg/uroot/test
exclude-rules:
- linters: revive
text: "don't use underscores"
Expand Down
10 changes: 5 additions & 5 deletions .vmtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ amd64:
qemu: "/zqemu"

VMTEST_KERNEL:
container: "ghcr.io/u-root/u-root/test-kernel-amd64@sha256:10ea580ef29468f6d6f4674279586d37e118b145564fd1e99b708370262961a4"
container: "ghcr.io/u-root/u-root/test-kernel-amd64@sha256:0b4f399fd61f2f5e060c86216150ec12439851101921337add61402c185e8007"
template: "{{.bzImage}}"
files:
bzImage: "/bzImage"

UROOT_MULTIBOOT_TEST_KERNEL_DIR:
container: "ghcr.io/u-root/u-root/test-multiboot-test-kernel-amd64@sha256:0fba729eddd76a50f5cfdfdabc4389d6a6902486b1190d354813ae953cc94b52"
container: "ghcr.io/u-root/u-root/test-multiboot-test-kernel-amd64@sha256:4439ae6289f5ccb5fa193556de8d639900c1a4c6f57c8d1d6015f5ea49b5d9f9"
template: "{{.mbdir}}"
directories:
mbdir: "/mb"

UROOT_TEST_UEFIPAYLOAD:
container: "ghcr.io/u-root/u-root/test-uefipayload-amd64@sha256:4a9a47cdce32fb6dd7610f6de9f55d64b5dc380cf95bc23561696bb48e34622a"
container: "ghcr.io/u-root/u-root/test-uefipayload-amd64@sha256:0c8eb1b8a20b1ab3748b830eef76634711586f18ff0accf7ba98015fa86383ff"
template: "{{.payload}}"
files:
payload: "/UEFIPAYLOAD.fd"
Expand All @@ -31,7 +31,7 @@ arm:
qemu: "/zqemu"

VMTEST_KERNEL:
container: "ghcr.io/u-root/u-root/test-kernel-arm@sha256:d185d93812738b2869f4835d5a209fcf25ffdea4fd6601fcd206dfad67c9bced"
container: "ghcr.io/u-root/u-root/test-kernel-arm@sha256:0429fa0ab8dbc4d1913f1c2b8ccc45fa8000897c801ed90b90c14a15e1f32020"
template: "{{.zImage}}"
files:
zImage: "/zImage"
Expand All @@ -44,7 +44,7 @@ arm64:
qemu: "/zqemu"

VMTEST_KERNEL:
container: "ghcr.io/u-root/u-root/test-kernel-arm64@sha256:805d64653b654ddf96e307cd3d7e835e5e9b9fd67d1b7e79b73cfa8ea2ce86e4"
container: "ghcr.io/u-root/u-root/test-kernel-arm64@sha256:e48f32266071edaec44445da98375fe512b1532640e256f9f7138633e0000866"
template: "{{.Image}}"
files:
Image: "/Image"
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,3 +522,9 @@ Improving existing commands (e.g., additional currently unsupported flags) is
very welcome. In this case it is not even required to build an initramfs, just
enter the `cmds/` directory and start coding. A list of commands that are on the
roadmap can be found [here](roadmap.md).

## Website

The sources of [u-root.org](https://u-root.org) are inside the `docs/` directory and
are deployed to the gh-pages branch. The CNAME file is currently not part of the CI
which deploys to the branch which shall be evaluated if this makes futures deployments easier.
Loading