File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ import (
1313 "github.com/autonomy/dianemo/initramfs/cmd/init/pkg/mount"
1414 "github.com/autonomy/dianemo/initramfs/cmd/init/pkg/rootfs"
1515 "github.com/autonomy/dianemo/initramfs/cmd/init/pkg/service"
16+ "github.com/autonomy/dianemo/initramfs/cmd/init/pkg/switchroot"
1617 "github.com/autonomy/dianemo/initramfs/cmd/init/pkg/userdata"
1718)
1819
1920var (
20- switchroot * bool
21+ switchRoot * bool
2122)
2223
2324func hang () {
@@ -37,7 +38,7 @@ func init() {
3738 panic (err )
3839 }
3940
40- switchroot = flag .Bool ("switch-root" , false , "perform a switch_root" )
41+ switchRoot = flag .Bool ("switch-root" , false , "perform a switch_root" )
4142 flag .Parse ()
4243}
4344
@@ -99,7 +100,7 @@ func root() (err error) {
99100func main () {
100101 defer hang ()
101102
102- if * switchroot {
103+ if * switchRoot {
103104 if err := root (); err != nil {
104105 panic (err )
105106 }
You can’t perform that action at this time.
0 commit comments