gitlab.com/apertussolutions/u-root@v7.0.0+incompatible/cmds/core/unmount/unmount.go (about) 1 // Copyright 2012-2020 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Unmount unmounts new from old, or everything mounted on old if new is omitted. 6 // 7 // Synopsis: 8 // unmount [ new ] old 9 package main 10 11 import ( 12 "log" 13 "os" 14 15 "github.com/u-root/u-root/pkg/namespace" 16 ) 17 18 func main() { 19 mod, err := namespace.ParseArgs(os.Args) 20 if err != nil { 21 log.Fatal(err) 22 } 23 if err := mod.Modify(namespace.DefaultNamespace, &namespace.Builder{}); err != nil { 24 log.Fatal(err) 25 } 26 }