forked from u-root/u-root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_plan9.go
35 lines (28 loc) · 924 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
// 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 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"),
},
}
}