mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
Merge pull request #3114 from djs55/kmsg.stderr
Write stderr to /var/log/<name>.log
This commit is contained in:
commit
6b6c93d9d8
@ -33,7 +33,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.9.91
|
image: linuxkit/kernel:4.9.91
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
services:
|
services:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -4,7 +4,7 @@ kernel:
|
|||||||
cmdline: "console=ttyS0 page_poison=1"
|
cmdline: "console=ttyS0 page_poison=1"
|
||||||
init:
|
init:
|
||||||
- linuxkit/vpnkit-expose-port:v0.5 # install vpnkit-expose-port and vpnkit-iptables-wrapper on host
|
- linuxkit/vpnkit-expose-port:v0.5 # install vpnkit-expose-port and vpnkit-iptables-wrapper on host
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -3,7 +3,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
@ -27,7 +27,7 @@ services:
|
|||||||
- name: write-and-rotate-logs
|
- name: write-and-rotate-logs
|
||||||
image: linuxkit/logwrite:d9778c0d538094d398cf0cbfc89277aeca67f1be
|
image: linuxkit/logwrite:d9778c0d538094d398cf0cbfc89277aeca67f1be
|
||||||
- name: kmsg
|
- name: kmsg
|
||||||
image: linuxkit/kmsg:v0.5
|
image: linuxkit/kmsg:cf3dc833591838596427aac032c829ea592599d0
|
||||||
trust:
|
trust:
|
||||||
org:
|
org:
|
||||||
- linuxkit
|
- linuxkit
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0"
|
cmdline: "console=tty0 console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
services:
|
services:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -3,7 +3,7 @@ kernel:
|
|||||||
cmdline: console=ttyS1
|
cmdline: console=ttyS1
|
||||||
ucode: intel-ucode.cpio
|
ucode: intel-ucode.cpio
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -4,7 +4,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54-rt
|
image: linuxkit/kernel:4.14.54-rt
|
||||||
cmdline: "console=tty0"
|
cmdline: "console=tty0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0 root=/dev/vda"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0 root=/dev/vda"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.9.38
|
image: linuxkit/kernel:4.9.38
|
||||||
cmdline: "console=tty0 console=ttyS0"
|
cmdline: "console=tty0 console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0"
|
cmdline: "console=tty0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -202,7 +202,7 @@ func start(ctx context.Context, service, sock, basePath, dumpSpec string) (strin
|
|||||||
|
|
||||||
io := func(id string) (cio.IO, error) {
|
io := func(id string) (cio.IO, error) {
|
||||||
stdoutFile := logger.Path(service + ".out")
|
stdoutFile := logger.Path(service + ".out")
|
||||||
stderrFile := logger.Path(service + ".err")
|
stderrFile := logger.Path(service)
|
||||||
return &logio{
|
return &logio{
|
||||||
cio.Config{
|
cio.Config{
|
||||||
Stdin: "/dev/null",
|
Stdin: "/dev/null",
|
||||||
|
@ -29,6 +29,7 @@ type Log interface {
|
|||||||
Path(string) string // Path of the log file (may be a FIFO)
|
Path(string) string // Path of the log file (may be a FIFO)
|
||||||
Open(string) (io.WriteCloser, error) // Opens a log stream
|
Open(string) (io.WriteCloser, error) // Opens a log stream
|
||||||
Dump(string) // Copies logs to the console
|
Dump(string) // Copies logs to the console
|
||||||
|
Symlink(string) // Symlinks to the log directory (if there is one)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLog returns the log destination we should use.
|
// GetLog returns the log destination we should use.
|
||||||
@ -82,6 +83,16 @@ func (f *fileLog) Dump(n string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Symlinks to the log directory. This is useful if we are logging directly to tmpfs and now need to symlink from a permanent disk.
|
||||||
|
func (f *fileLog) Symlink(path string) {
|
||||||
|
parent := filepath.Dir(path)
|
||||||
|
if err := os.MkdirAll(parent, 0755); err != nil {
|
||||||
|
log.Printf("Error creating secondary log directory %s: %v", parent, err)
|
||||||
|
} else if err := os.Symlink(f.dir, path); err != nil && !os.IsExist(err) {
|
||||||
|
log.Printf("Error creating symlink from %s to %s: %v", path, f.dir, err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
type remoteLog struct {
|
type remoteLog struct {
|
||||||
fifoDir string
|
fifoDir string
|
||||||
}
|
}
|
||||||
@ -164,6 +175,11 @@ func (r *remoteLog) Dump(n string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Symlinks to the log directory. This is a no-op because there is no log directory.
|
||||||
|
func (r *remoteLog) Symlink(path string) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func sendToLogger(name string, fd int) error {
|
func sendToLogger(name string, fd int) error {
|
||||||
var ctlSocket int
|
var ctlSocket int
|
||||||
var err error
|
var err error
|
||||||
|
@ -87,7 +87,7 @@ func runcInit(rootPath, serviceType string) int {
|
|||||||
}
|
}
|
||||||
defer stdout.Close()
|
defer stdout.Close()
|
||||||
|
|
||||||
stderrLog := serviceType + "." + name + ".err"
|
stderrLog := serviceType + "." + name
|
||||||
stderr, err := logger.Open(stderrLog)
|
stderr, err := logger.Open(stderrLog)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error opening stderr log connection: %v", err)
|
log.Printf("Error opening stderr log connection: %v", err)
|
||||||
@ -160,11 +160,7 @@ func runcInit(rootPath, serviceType string) int {
|
|||||||
_ = os.RemoveAll(tmpdir)
|
_ = os.RemoveAll(tmpdir)
|
||||||
|
|
||||||
// make sure the link exists from /var/log/onboot -> /run/log/onboot
|
// make sure the link exists from /var/log/onboot -> /run/log/onboot
|
||||||
if err := os.MkdirAll(varLogDir, 0755); err != nil {
|
logger.Symlink(varLogLink)
|
||||||
log.Printf("Error creating secondary log directory %s: %v", varLogDir, err)
|
|
||||||
} else if err := os.Symlink(logDir, varLogLink); err != nil && !os.IsExist(err) {
|
|
||||||
log.Printf("Error creating symlink from %s to %s: %v", varLogLink, logDir, err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return status
|
return status
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/euank/go-kmsg-parser/kmsgparser"
|
"github.com/euank/go-kmsg-parser/kmsgparser"
|
||||||
@ -20,6 +21,6 @@ func main() {
|
|||||||
kmsg := parser.Parse()
|
kmsg := parser.Parse()
|
||||||
|
|
||||||
for msg := range kmsg {
|
for msg := range kmsg {
|
||||||
fmt.Printf("(%d) - %s: %s", msg.SequenceNumber, msg.Timestamp.Format(time.RFC3339Nano), msg.Message)
|
fmt.Fprintf(os.Stderr, "(%d) - %s: %s", msg.SequenceNumber, msg.Timestamp.Format(time.RFC3339Nano), msg.Message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel-clear-containers:4.9.x
|
image: linuxkit/kernel-clear-containers:4.9.x
|
||||||
cmdline: "root=/dev/pmem0p1 rootflags=dax,data=ordered,errors=remount-ro rw rootfstype=ext4 tsc=reliable no_timer_check rcupdate.rcu_expedited=1 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 i8042.noaux=1 noreplace-smp reboot=k panic=1 console=hvc0 console=hvc1 initcall_debug iommu=off quiet cryptomgr.notests page_poison=on"
|
cmdline: "root=/dev/pmem0p1 rootflags=dax,data=ordered,errors=remount-ro rw rootfstype=ext4 tsc=reliable no_timer_check rcupdate.rcu_expedited=1 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 i8042.noaux=1 noreplace-smp reboot=k panic=1 console=hvc0 console=hvc1 initcall_debug iommu=off quiet cryptomgr.notests page_poison=on"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
onboot:
|
onboot:
|
||||||
- name: sysctl
|
- name: sysctl
|
||||||
image: mobylinux/sysctl:2cf2f9d5b4d314ba1bfc22b2fe931924af666d8c
|
image: mobylinux/sysctl:2cf2f9d5b4d314ba1bfc22b2fe931924af666d8c
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 page_poison=1"
|
cmdline: "console=ttyS0 page_poison=1"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 page_poison=1"
|
cmdline: "console=ttyS0 page_poison=1"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel-ima:4.11.1-186dd3605ee7b23214850142f8f02b4679dbd148
|
image: linuxkit/kernel-ima:4.11.1-186dd3605ee7b23214850142f8f02b4679dbd148
|
||||||
cmdline: "console=ttyS0 console=tty0 page_poison=1 ima_appraise=enforce_ns"
|
cmdline: "console=ttyS0 console=tty0 page_poison=1 ima_appraise=enforce_ns"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: mobylinux/kernel-landlock:4.9.x
|
image: mobylinux/kernel-landlock:4.9.x
|
||||||
cmdline: "console=ttyS0 page_poison=1"
|
cmdline: "console=ttyS0 page_poison=1"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- mobylinux/runc:b0fb122e10dbb7e4e45115177a61a3f8d68c19a9
|
- mobylinux/runc:b0fb122e10dbb7e4e45115177a61a3f8d68c19a9
|
||||||
- mobylinux/containerd:18eaf72f3f4f9a9f29ca1951f66df701f873060b
|
- mobylinux/containerd:18eaf72f3f4f9a9f29ca1951f66df701f873060b
|
||||||
- mobylinux/ca-certificates:eabc5a6e59f05aa91529d80e9a595b85b046f935
|
- mobylinux/ca-certificates:eabc5a6e59f05aa91529d80e9a595b85b046f935
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: "linuxkitprojects/kernel-memorizer:4.10_dbg-17e2eee03ab59f8df8a9c10ace003a84aec2f540"
|
image: "linuxkitprojects/kernel-memorizer:4.10_dbg-17e2eee03ab59f8df8a9c10ace003a84aec2f540"
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.9.34
|
image: linuxkit/kernel:4.9.34
|
||||||
cmdline: "console=ttyS0 page_poison=1"
|
cmdline: "console=ttyS0 page_poison=1"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 page_poison=1"
|
cmdline: "console=ttyS0 page_poison=1"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: okernel:latest
|
image: okernel:latest
|
||||||
cmdline: "console=tty0 page_poison=1"
|
cmdline: "console=tty0 page_poison=1"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkitprojects/kernel-shiftfs:4.11.4-881a041fc14bd95814cf140b5e98d97dd65160b5
|
image: linuxkitprojects/kernel-shiftfs:4.11.4-881a041fc14bd95814cf140b5e98d97dd65160b5
|
||||||
cmdline: "console=ttyS0 console=tty0 page_poison=1"
|
cmdline: "console=ttyS0 console=tty0 page_poison=1"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: dhcpcd
|
- name: dhcpcd
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
services:
|
services:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.4.139
|
image: linuxkit/kernel:4.4.139
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: check-kernel-config
|
- name: check-kernel-config
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.9.111
|
image: linuxkit/kernel:4.9.111
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: check-kernel-config
|
- name: check-kernel-config
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: check-kernel-config
|
- name: check-kernel-config
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.17.5
|
image: linuxkit/kernel:4.17.5
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: check-kernel-config
|
- name: check-kernel-config
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.4.139
|
image: linuxkit/kernel:4.4.139
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: check
|
- name: check
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.9.111
|
image: linuxkit/kernel:4.9.111
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: check
|
- name: check
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: check
|
- name: check
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.17.5
|
image: linuxkit/kernel:4.17.5
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: check
|
- name: check
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
trust:
|
trust:
|
||||||
org:
|
org:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 page_poison=1"
|
cmdline: "console=ttyS0 page_poison=1"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: test
|
- name: test
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: binfmt
|
- name: binfmt
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: dhcpcd
|
- name: dhcpcd
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: format
|
- name: format
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: extend
|
- name: extend
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: modprobe
|
- name: modprobe
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: modprobe
|
- name: modprobe
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: format
|
- name: format
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: extend
|
- name: extend
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: format
|
- name: format
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: format
|
- name: format
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.9.38
|
image: linuxkit/kernel:4.9.38
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: format
|
- name: format
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: modprobe
|
- name: modprobe
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: format
|
- name: format
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.9.51
|
image: linuxkit/kernel:4.9.51
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: format
|
- name: format
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: format
|
- name: format
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.9.x
|
image: linuxkit/kernel:4.9.x
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: mkimage
|
- name: mkimage
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: sysctl
|
- name: sysctl
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
for i in $(seq 1 20); do
|
for i in $(seq 1 20); do
|
||||||
# Look for a common kernel log message
|
# Look for a common kernel log message
|
||||||
if grep "SCSI subsystem initialized" /var/log/kmsg.out.log 2>/dev/null; then
|
if grep "SCSI subsystem initialized" /var/log/kmsg.log 2>/dev/null; then
|
||||||
printf "kmsg test suite PASSED\n" > /dev/console
|
printf "kmsg test suite PASSED\n" > /dev/console
|
||||||
/sbin/poweroff -f
|
/sbin/poweroff -f
|
||||||
fi
|
fi
|
||||||
@ -10,6 +10,6 @@ for i in $(seq 1 20); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
printf "kmsg test suite FAILED\n" > /dev/console
|
printf "kmsg test suite FAILED\n" > /dev/console
|
||||||
echo "contents of /var/log/kmsg.out.log:" > /dev/console
|
echo "contents of /var/log/kmsg.log:" > /dev/console
|
||||||
cat /var/log/kmsg.out.log > /dev/console
|
cat /var/log/kmsg.log > /dev/console
|
||||||
/sbin/poweroff -f
|
/sbin/poweroff -f
|
||||||
|
@ -2,14 +2,14 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0 console=ttyAMA0"
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
- linuxkit/ca-certificates:v0.5
|
- linuxkit/ca-certificates:v0.5
|
||||||
- linuxkit/memlogd:v0.5
|
- linuxkit/memlogd:v0.5
|
||||||
services:
|
services:
|
||||||
- name: kmsg
|
- name: kmsg
|
||||||
image: linuxkit/kmsg:v0.5
|
image: linuxkit/kmsg:cf3dc833591838596427aac032c829ea592599d0
|
||||||
- name: write-and-rotate-logs
|
- name: write-and-rotate-logs
|
||||||
image: linuxkit/logwrite:d9778c0d538094d398cf0cbfc89277aeca67f1be
|
image: linuxkit/logwrite:d9778c0d538094d398cf0cbfc89277aeca67f1be
|
||||||
- name: check-the-logs
|
- name: check-the-logs
|
||||||
|
@ -2,7 +2,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
|
@ -4,7 +4,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.14.54
|
image: linuxkit/kernel:4.14.54
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
- linuxkit/containerd:v0.5
|
- linuxkit/containerd:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
|
@ -3,7 +3,7 @@ kernel:
|
|||||||
image: linuxkit/kernel:4.9.38
|
image: linuxkit/kernel:4.9.38
|
||||||
cmdline: "console=ttyS0"
|
cmdline: "console=ttyS0"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:v0.5
|
- linuxkit/init:3f1e5c32d6ca9e83a7ea7ad9854da2032971a83f
|
||||||
- linuxkit/runc:v0.5
|
- linuxkit/runc:v0.5
|
||||||
onboot:
|
onboot:
|
||||||
- name: test-ns
|
- name: test-ns
|
||||||
|
Loading…
Reference in New Issue
Block a user