forked from u-root/u-root
-
Notifications
You must be signed in to change notification settings - Fork 2
/
init_plan9.go
36 lines (29 loc) · 959 Bytes
/
init_plan9.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2018 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo && plan9
// +build !tinygo,plan9
package main
import (
"os/exec"
"github.com/u-root/u-root/pkg/libinit"
)
func quiet() {
}
func osInitGo() *initCmds {
// TOOD: get kernel command line.
uinitArgs := libinit.WithArguments()
// namespace setup will have done bind mounts into /bin, so name things only once.
return &initCmds{
cmds: []*exec.Cmd{
// inito is (optionally) created by the u-root command when the
// u-root initramfs is merged with an existing initramfs that
// has a /init. The name inito means "original /init" There may
// be an inito if we are building on an existing initramfs. All
// initos need their own pid space.
libinit.Command("/inito"),
libinit.Command("/bin/uinit", uinitArgs),
libinit.Command("/bin/sh"),
},
}
}